From 6f40fbc45fcc1be83fe397d3b96fa39b5c0b65ca Mon Sep 17 00:00:00 2001 From: Nicolas Frandeboeuf Date: Wed, 15 Feb 2017 10:03:17 +0100 Subject: [PATCH] Add Upgrade connection headers to allow websockets --- conf/nginx-proxy.conf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/conf/nginx-proxy.conf b/conf/nginx-proxy.conf index 254209f..8b57859 100644 --- a/conf/nginx-proxy.conf +++ b/conf/nginx-proxy.conf @@ -6,8 +6,12 @@ location YNH_LOCATION { proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Host $server_name; + + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; # Include SSOWAT user panel. include conf.d/yunohost_panel.conf.inc; more_clear_input_headers 'Accept-Encoding'; -} \ No newline at end of file +}