library/roles/nginx/templates/nginx-virthost.j2: Support websockets inside a 'server' definition but also outside a 'location' one.

This commit is contained in:
Andrea Dell'Amico 2018-11-30 20:10:00 +01:00
parent 918d1f161d
commit 80d749b7cf
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ server {
{% endfor %}
{% endif %}
{% if item.websockets is defined and item.websockets %}
{% if nginx_websockets_support is defined and nginx_websockets_support %}
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
{% endif %}