From ff4afe3f74ec93499c5ba12228e3c5287e8e6e6b Mon Sep 17 00:00:00 2001 From: Davide Principi Date: Tue, 3 Oct 2023 19:10:12 +0200 Subject: [PATCH] Avoid bind IPv6 failure (#9) If the host does not provide IPv6 loopback address the stream configuration fails. As only 127.0.0.1 is actually required, remove the IPv6 bind completely. --- imageroot/templates/nginx.conf.j2 | 1 - 1 file changed, 1 deletion(-) diff --git a/imageroot/templates/nginx.conf.j2 b/imageroot/templates/nginx.conf.j2 index 4dcde7c3..82a0a381 100644 --- a/imageroot/templates/nginx.conf.j2 +++ b/imageroot/templates/nginx.conf.j2 @@ -14,7 +14,6 @@ stream { # Domain {{ item.domain }} server { proxy_pass {{ item.domain | replace('.', '_') }}; - listen [::1]:{{ item.listen_port }}; listen 127.0.0.1:{{ item.listen_port }}; proxy_ssl {{ 'on' if item.tls == '1' else 'off' }};