From ff9fff5b03859ef38b4c53f2d7b9bc3087244b65 Mon Sep 17 00:00:00 2001 From: kulikov-a <36099472+kulikov-a@users.noreply.github.com> Date: Sat, 10 Apr 2021 11:27:13 +0300 Subject: [PATCH] location.conf: fix proxy_ssl_name, add hook (#2243) --- .../service/templates/OPNsense/Nginx/location.conf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/www/nginx/src/opnsense/service/templates/OPNsense/Nginx/location.conf b/www/nginx/src/opnsense/service/templates/OPNsense/Nginx/location.conf index 006a1b30d..d0bc1e03b 100644 --- a/www/nginx/src/opnsense/service/templates/OPNsense/Nginx/location.conf +++ b/www/nginx/src/opnsense/service/templates/OPNsense/Nginx/location.conf @@ -178,10 +178,10 @@ location {{ location.matchtype }} {{ location.urlpattern }} { proxy_ssl_server_name on; {% else %} proxy_ssl_server_name off; -{% if upstream.tls_name_override is defined and upstream.tls_name_override != '' %} +{% endif %} +{% if upstream.tls_name_override is defined and upstream.tls_name_override != '' %} proxy_ssl_name {{ upstream.tls_name_override }}; -{% endif %} -{% endif%} +{% endif %} {% if upstream.tls_protocol_versions is defined and upstream.tls_protocol_versions != '' %} proxy_ssl_protocols {{ upstream.tls_protocol_versions.replace(',', ' ') }}; {% endif %} @@ -206,5 +206,5 @@ location {{ location.matchtype }} {{ location.urlpattern }} { {% endfor %} {% endif %} {% endif %}{# honeypot #} - + include {{ location['@uuid'] }}_post/*.conf; }