mailcow/data
Stephen Ritz 7dab6c63d1 [Nginx] only bind IPv6 default_server when ENABLE_IPV6 is set
The HTTP-to-HTTPS redirect server block bound `listen [::]:{{ HTTP_PORT }}
default_server` unconditionally, while every other IPv6 listen directive in
this template is guarded by `{% if ENABLE_IPV6 %}`. On hosts where IPv6 is
disabled at the kernel level, nginx cannot bind `::` and fails to start.

This only triggers when HTTP_REDIRECT is enabled and ENABLE_IPV6 is false,
which is why it survives testing with ENABLE_IPV6=false alone.

Guard the directive like the other six IPv6 listeners in the template.

Refs #7296

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-14 14:54:28 -07:00
..
assets Merge pull request #6223 from mailcow/ffdhe2048 2025-02-12 10:48:22 +01:00
conf [Nginx] only bind IPv6 default_server when ENABLE_IPV6 is set 2026-07-14 14:54:28 -07:00
Dockerfiles Merge pull request #7312 from mailcow/renovate/composer-composer-2.x 2026-07-13 09:40:58 +02:00
hooks
web Refined wording for displaying of active settings on quarantine page. 2026-07-12 17:22:15 +02:00