diff --git a/www/nginx/Makefile b/www/nginx/Makefile index 58fc63363..6acc5bc26 100644 --- a/www/nginx/Makefile +++ b/www/nginx/Makefile @@ -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 diff --git a/www/nginx/src/opnsense/service/templates/OPNsense/Nginx/streams.conf b/www/nginx/src/opnsense/service/templates/OPNsense/Nginx/streams.conf index a2d306079..8915f3265 100644 --- a/www/nginx/src/opnsense/service/templates/OPNsense/Nginx/streams.conf +++ b/www/nginx/src/opnsense/service/templates/OPNsense/Nginx/streams.conf @@ -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%}