www/nginx: Added the ability to override SNI for streams (#4804)

This commit is contained in:
DodoLeDev
2025-07-15 08:58:41 +02:00
committed by GitHub
parent c804498cdf
commit 5e78d55d00
@@ -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('-','') }};