1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2025-12-18 20:31:32 +00:00

[Nginx] do not invert ENABLE_IPV6

This commit is contained in:
FreddleSpl0it
2025-09-22 14:16:42 +02:00
parent 78168ee80a
commit 9940c503a2
2 changed files with 2 additions and 2 deletions

View File

@@ -10,7 +10,7 @@ def includes_conf(env, template_vars):
server_name_config = f"server_name {template_vars['MAILCOW_HOSTNAME']} autodiscover.* autoconfig.* {' '.join(template_vars['ADDITIONAL_SERVER_NAMES'])};"
listen_plain_config = f"listen {template_vars['HTTP_PORT']};"
listen_ssl_config = f"listen {template_vars['HTTPS_PORT']};"
if not template_vars['ENABLE_IPV6']:
if template_vars['ENABLE_IPV6']:
listen_plain_config += f"\nlisten [::]:{template_vars['HTTP_PORT']};"
listen_ssl_config += f"\nlisten [::]:{template_vars['HTTPS_PORT']} ssl;"
listen_ssl_config += "\nhttp2 on;"