1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2026-07-29 16:13:39 +00:00

Merge pull request #7343 from smpaz7467/fix/nginx-ipv6-default-server

[Nginx] only bind IPv6 default_server when ENABLE_IPV6 is set
This commit is contained in:
FreddleSpl0it
2026-07-28 13:35:17 +02:00
committed by GitHub
+2
View File
@@ -47,7 +47,9 @@ http {
server {
root /web;
listen {{ HTTP_PORT }} default_server;
{% if ENABLE_IPV6 %}
listen [::]:{{ HTTP_PORT }} default_server;
{%endif%}
server_name {{ MAILCOW_HOSTNAME }} autodiscover.* autoconfig.* mta-sts.* {{ ADDITIONAL_SERVER_NAMES | join(' ') }};