Update nginx.conf
This commit is contained in:
@@ -13,7 +13,7 @@ server {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Proxy API requests to the backend service
|
# Proxy API requests to the backend service
|
||||||
location /api/ {
|
location ^~ /api/ { # Use ^~ for preferential prefix matching
|
||||||
# rewrite ^/api(/.*)$ $1 break; # Remove /api prefix before proxying - REMOVED to match backend routes
|
# 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/...
|
proxy_pass http://backend:3001; # Proxy to backend root, backend expects /api/v1/...
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user