This commit is contained in:
Baobhan Sith
2025-04-24 20:59:05 +08:00
parent e3139457ff
commit 2ca01ffd04
6 changed files with 33 additions and 23 deletions
+2 -2
View File
@@ -13,8 +13,8 @@ server {
# Proxy API requests to the backend service
location /api/ {
rewrite ^/api(/.*)$ $1 break; # Remove /api prefix before proxying
proxy_pass http://backend:3001; # Proxy to backend root
# rewrite ^/api(/.*)$ $1 break; # Remove /api prefix before proxying - REMOVED to match backend routes
proxy_pass http://backend:3001; # Proxy to backend root, backend expects /api/v1/...
# Standard proxy headers
proxy_set_header Host $host;