'upstream' is undefined quickfix

dont try to set proxy_protocol value for sni mapped streams
This commit is contained in:
kulikov-a
2023-06-23 13:47:47 +02:00
committed by Franco Fichtner
parent 682780e6f6
commit 25a1684452
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
PLUGIN_NAME= nginx
PLUGIN_VERSION= 1.32.1
PLUGIN_REVISION= 1
PLUGIN_REVISION= 2
PLUGIN_COMMENT= Nginx HTTP server and reverse proxy
PLUGIN_DEPENDS= nginx
PLUGIN_MAINTAINER= franz.fabian.94@gmail.com
@@ -96,11 +96,11 @@
{% endif %}
proxy_ssl {% if upstream.tls_enable == '1' %}on{% else %}off{% endif %};
proxy_pass upstream{{ server.upstream.replace('-','') }};
proxy_protocol {% if upstream.proxy_protocol == '1' %}on{% else %}off{% endif %};
{% endif %}
{% elif server.route_field == 'sni_upstream_map' %}
proxy_pass $hostmap{{ server.sni_upstream_map.replace('-','') }};
{% endif %}
proxy_protocol {% if upstream.proxy_protocol == '1' %}on{% else %}off{% endif %};
{% if server.proxy_responses is defined and server.proxy_responses != '' %}
proxy_responses {{ server.proxy_responses }};
{% endif%}