Skip to content

Commit

Permalink
[#206] feat: add rewrite rule to strip /api prefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
glemenneo committed Nov 9, 2024
1 parent 2836d2d commit 600de35
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nginx/templates/local-nginx.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ http {
proxy_set_header Upgrade ${D}http_upgrade;
proxy_set_header Connection "upgrade";

location /api/ {
rewrite ^/api(/.*)$ $1 last;
}

location /auth {
proxy_pass ${USER_SERVICE_URL};
}
Expand Down

0 comments on commit 600de35

Please sign in to comment.