diff --git a/frontend/nginx.conf b/frontend/nginx.conf index be98754..fbc7f95 100644 --- a/frontend/nginx.conf +++ b/frontend/nginx.conf @@ -8,7 +8,8 @@ server { # Forward API requests to backend location /api/ { - proxy_pass http://api:8000/; + # Preserve the full path after /api when forwarding + proxy_pass http://api:8000$request_uri; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;