From 2aa8d1facbb183a9f9f54b303e423803e171f984 Mon Sep 17 00:00:00 2001 From: Fabian Franz Date: Sun, 13 Oct 2019 14:18:45 +0200 Subject: [PATCH] www/nginx: fix broken template --- .../src/opnsense/service/templates/OPNsense/Nginx/streams.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 18152f3fe..aa4342a27 100644 --- a/www/nginx/src/opnsense/service/templates/OPNsense/Nginx/streams.conf +++ b/www/nginx/src/opnsense/service/templates/OPNsense/Nginx/streams.conf @@ -92,7 +92,7 @@ {% 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 %}; + proxy_protocol {% if server.proxy_protocol == '1' %}on{% else %}off{% endif %}; {% if server.trusted_proxies is defined and server.trusted_proxies != '' %} {% for trusted_proxy in server.trusted_proxies.split(',') %} set_real_ip_from {{ trusted_proxy }};