Websocket-specific nginx configuration

This commit is contained in:
Tony Garnock-Jones 2016-11-21 17:12:16 +13:00
parent 6b4cb0b271
commit 036916de7f
1 changed files with 7 additions and 1 deletions

View File

@ -28,7 +28,13 @@ server {
}
location / {
proxy_set_header Host $host;
proxy_pass http://127.0.0.1:7827/;
proxy_set_header Host $host;
proxy_read_timeout 600s;
proxy_send_timeout 600s;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}