mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
'upstream' is undefined quickfix
dont try to set proxy_protocol value for sni mapped streams
This commit is contained in:
committed by
Franco Fichtner
parent
682780e6f6
commit
25a1684452
+1
-1
@@ -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%}
|
||||
|
||||
Reference in New Issue
Block a user