Allow keep alive connection when ws is off

This help improves performance.
This commit is contained in:
thelittlefireman 2021-08-18 23:42:18 +02:00 committed by GitHub
parent a824e15684
commit 6cc1abc893
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -17,6 +17,8 @@ location {{ url }} {% raw %}{{% endraw +%}
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
{% else %}
proxy_set_header Connection "";
{% endif %}
{% if headers != "" %}
{% for header in headers.split(";") +%}