79096955

Date: 2024-10-17 07:20:09
Score: 1
Natty:
Report link

Working solution :

location /api/auth/ {
   rewrite ^/api/auth(.*) $1 break;
   proxy_pass http://localhost:8085/;
}

About this regex :

due to ^, means every caractere chain begining with /api/auth(.*)

represent a group of any character.

Example /api/auth/account/login :

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: KnowledgePath