www/nginx: sync with master

This commit is contained in:
Franco Fichtner 2023-06-27 12:29:09 +02:00
parent 2680e18051
commit 082cc03590
2 changed files with 2 additions and 2 deletions

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

View file

@ -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%}