Update conf/nginx/sni_forward.conf: replace '.' with underscore in domain to prevent possible conflicts in specific cases

This commit is contained in:
Alexandre Aubin 2023-12-10 15:04:57 +01:00 committed by GitHub
parent 7a77083a8d
commit 91fba4b35a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,7 +3,7 @@ stream {
map $ssl_preread_server_name $name {
{% for domain_ip in domain_ip_map %}
{{ domain_ip.split(":")[0] }} {{ domain_ip.split(":")[0].replace('.', '') }};
{{ domain_ip.split(":")[0] }} {{ domain_ip.split(":")[0].replace('.', '_') }};
{% endfor %}
default https_default_backend;
}