From 5450e183420187efc893854fd47c3f4bfd4cb0c1 Mon Sep 17 00:00:00 2001 From: wilmardo Date: Wed, 10 Sep 2025 17:40:09 +0200 Subject: [PATCH] feat: make nginx respect ipv6 disable fixes #3996 Signed-off-by: wilmardo --- boot.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/boot.sh b/boot.sh index 589a63cce..bf7933bd2 100755 --- a/boot.sh +++ b/boot.sh @@ -103,6 +103,9 @@ ipv6_disable=$(cat /sys/module/ipv6/parameters/disable) # prepare nginx config envsubst '$MEDIA_ROOT $STATIC_ROOT $TANDOOR_PORT' < /opt/recipes/http.d/Recipes.conf.template > /opt/recipes/http.d/Recipes.conf +if [ "$ipv6_disable" -eq 1 ]; then + sed -i '/listen \[::\]:80/d' /opt/recipes/http.d/Recipes.conf +fi # start nginx echo "Starting nginx"