From 6ef5f36bd54c74330af0866a7968dae09c155628 Mon Sep 17 00:00:00 2001 From: Mark Ts Date: Tue, 13 Jul 2021 15:49:56 +0300 Subject: [PATCH] added proxy_http_version 1.1; when doing upgrade --- templates/reverseproxy.conf.j2 | 1 + templates/reverseproxy_ssl.conf.j2 | 1 + 2 files changed, 2 insertions(+) diff --git a/templates/reverseproxy.conf.j2 b/templates/reverseproxy.conf.j2 index 3439de9..a9fe484 100644 --- a/templates/reverseproxy.conf.j2 +++ b/templates/reverseproxy.conf.j2 @@ -33,6 +33,7 @@ server { proxy_read_timeout {{ item.value.proxy_read_timeout | default('300') }}; proxy_set_header Upgrade $http_upgrade; {% if item.value.conn_upgrade is not defined or item.value.conn_upgrade %} + proxy_http_version 1.1; proxy_set_header Connection "upgrade"; {% endif %} proxy_set_header Host $http_host; diff --git a/templates/reverseproxy_ssl.conf.j2 b/templates/reverseproxy_ssl.conf.j2 index fb8f073..09d80dd 100644 --- a/templates/reverseproxy_ssl.conf.j2 +++ b/templates/reverseproxy_ssl.conf.j2 @@ -93,6 +93,7 @@ server { proxy_read_timeout {{ item.value.proxy_read_timeout | default('300') }}; proxy_set_header Upgrade $http_upgrade; {% if item.value.conn_upgrade is not defined or item.value.conn_upgrade %} + proxy_http_version 1.1; proxy_set_header Connection "upgrade"; {% endif %} proxy_set_header Host $http_host;