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 9b696220f..9904736ce 100644 --- a/www/nginx/src/opnsense/service/templates/OPNsense/Nginx/streams.conf +++ b/www/nginx/src/opnsense/service/templates/OPNsense/Nginx/streams.conf @@ -93,6 +93,10 @@ proxy_ssl_certificate_key /usr/local/etc/nginx/key/{{ upstream.tls_client_certificate }}.key; proxy_ssl_certificate /usr/local/etc/nginx/key/{{ upstream.tls_client_certificate }}.pem; {% endif %} +{% if upstream.tls_name_override is defined and upstream.tls_name_override != '' %} + proxy_ssl_server_name on; + proxy_ssl_name {{ upstream.tls_name_override }}; +{% endif %} {% endif %} proxy_ssl {% if upstream.tls_enable == '1' %}on{% else %}off{% endif %}; proxy_pass upstream{{ server.upstream.replace('-','') }};