This commit is contained in:
Aodhan
2025-07-08 23:29:03 +01:00
parent 9f5c2d24a6
commit a36318de71

View File

@@ -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;