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; }