Added websock upgrade option for base proxy host locations

This commit is contained in:
Jamie Curnow
2018-09-29 16:02:05 +10:00
parent efa1424cad
commit 83686c4535
8 changed files with 115 additions and 20 deletions

View File

@ -22,6 +22,12 @@ server {
{% include "_forced_ssl.conf" %}
{% if allow_websocket_upgrade == 1 or allow_websocket_upgrade == true %}
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_http_version 1.1;
{% endif %}
# Proxy!
include conf.d/include/proxy.conf;
}