From 6cc1abc893d145499a2edcb12a1c7d3f7d05e988 Mon Sep 17 00:00:00 2001 From: thelittlefireman Date: Wed, 18 Aug 2021 23:42:18 +0200 Subject: [PATCH] Allow keep alive connection when ws is off This help improves performance. --- confs/site/reverse-proxy.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/confs/site/reverse-proxy.conf b/confs/site/reverse-proxy.conf index 1678bd1..e8c2932 100644 --- a/confs/site/reverse-proxy.conf +++ b/confs/site/reverse-proxy.conf @@ -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(";") +%}