diff --git a/deployment/nginx.conf b/deployment/nginx.conf index aa285d9..2472cb1 100644 --- a/deployment/nginx.conf +++ b/deployment/nginx.conf @@ -9,6 +9,9 @@ http { location /api/ { proxy_pass http://127.0.0.1:4000/; proxy_set_header Host $host; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection $connection_upgrade; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; @@ -17,6 +20,9 @@ http { location / { proxy_pass http://127.0.0.1:5000; proxy_set_header Host $host; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection $connection_upgrade; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme;