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