Add Upgrade connection headers to allow websockets

This commit is contained in:
Nicolas Frandeboeuf 2017-02-15 10:03:17 +01:00 committed by GitHub
parent baed23e352
commit 6f40fbc45f

View file

@ -7,6 +7,10 @@ location YNH_LOCATION {
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';