From 036916de7f447056c3d0c07861bf4a2249602e0d Mon Sep 17 00:00:00 2001 From: Tony Garnock-Jones Date: Mon, 21 Nov 2016 17:12:16 +1300 Subject: [PATCH] Websocket-specific nginx configuration --- nginx.conf | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nginx.conf b/nginx.conf index 30a3bfb..68883f3 100644 --- a/nginx.conf +++ b/nginx.conf @@ -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"; } }