fix: correct proxy_pass configuration for API requests in nginx
All checks were successful
Build and Deploy Thoughts / build-and-deploy-local (push) Successful in 6s

This commit is contained in:
2025-09-09 03:51:37 +02:00
parent c6f7dfe225
commit 247c6ad955

View File

@@ -21,14 +21,12 @@ server {
send_timeout 300s; send_timeout 300s;
location /api/ { location /api/ {
rewrite /api/(.*) /$1 break; proxy_pass http://backend/;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://backend;
} }
location / { location / {