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 authored and yunruu committed Nov 13, 2024
1 parent fb8c4c4 commit 2612094
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 2612094

Please sign in to comment.