diff --git a/confs/site/reverse-proxy.conf b/confs/site/reverse-proxy.conf index 1c8f468..61aa87e 100644 --- a/confs/site/reverse-proxy.conf +++ b/confs/site/reverse-proxy.conf @@ -19,10 +19,12 @@ location {{ url }} {% raw %}{{% endraw +%} include {{ NGINX_PREFIX }}authelia-auth-request.conf; {% endif %} include {{ NGINX_PREFIX }}reverse-proxy-headers.conf; - {% if ws == "yes" +%} proxy_http_version 1.1; + {% if ws == "yes" +%} proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; + {% else %} + proxy_set_header Connection ""; {% endif %} {% if headers != "" %} {% for header in headers.split(";") +%}