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 Alexandre Aubin
parent 2de070c84f
commit 3e2167c4e0

View file

@ -9,7 +9,7 @@ stream {
}
{% for domain_ip in domain_ip_map %}
upstream {{ domain_ip.split(":")[0].replace('.', '') }} {
upstream {{ domain_ip.split(":")[0].replace('.', '_') }} {
server {{ domain_ip.split(":")[1] }}:443;
}
{% endfor %}