location.conf: fix proxy_ssl_name, add hook (#2243)

This commit is contained in:
kulikov-a
2021-04-10 10:27:13 +02:00
committed by GitHub
parent 84480c7d3a
commit ff9fff5b03
@@ -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;
}