Allow keep alive connection when ws is off
This help improves performance.
This commit is contained in:
parent
a824e15684
commit
6cc1abc893
@ -17,6 +17,8 @@ location {{ url }} {% raw %}{{% endraw +%}
|
|||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header Connection "Upgrade";
|
proxy_set_header Connection "Upgrade";
|
||||||
|
{% else %}
|
||||||
|
proxy_set_header Connection "";
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if headers != "" %}
|
{% if headers != "" %}
|
||||||
{% for header in headers.split(";") +%}
|
{% for header in headers.split(";") +%}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user