Fix: Use 127.0.0.1 for nginx proxy to fix 502 error
All checks were successful
DevSecOps-Multibranch/pipeline/head This commit looks good

This commit is contained in:
test
2025-11-30 19:15:58 +05:30
parent 101cbf86d9
commit e07af65f67

View File

@@ -59,7 +59,7 @@ http {
# Proxy API calls to backend # Proxy API calls to backend
location /api { location /api {
proxy_pass http://localhost:3001; proxy_pass http://127.0.0.1:3001;
proxy_http_version 1.1; proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade'; proxy_set_header Connection 'upgrade';