diff --git a/web/nginx.conf b/web/nginx.conf index b5cf584..cbb0bc2 100644 --- a/web/nginx.conf +++ b/web/nginx.conf @@ -21,9 +21,16 @@ http { try_files $uri $uri/ /index.html; } - location /api { - proxy_pass https://auis-api.fly.dev; - proxy_set_header Host $host; + location = /api { + proxy_set_header Host $http_host; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-NginX-Proxy true; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_http_version 1.1; + proxy_redirect off; + proxy_pass https://auis-api.fly.dev; } # Additional configuration can be added here if needed