forked from ISTI-ansible-roles/ansible-roles
library/roles/nginx/templates/nginx-virthost.j2: Support websockets inside a 'server' definition but also outside a 'location' one.
This commit is contained in:
parent
918d1f161d
commit
80d749b7cf
|
@ -90,7 +90,7 @@ server {
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% 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 Upgrade $http_upgrade;
|
||||||
proxy_set_header Connection $connection_upgrade;
|
proxy_set_header Connection $connection_upgrade;
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in New Issue