From 39ec343f2436577333d0ff45c90740a7c8a81e13 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sat, 23 Aug 2025 08:56:42 +0200 Subject: [PATCH] Update 90-ingress.sh --- calibre/rootfs/etc/cont-init.d/90-ingress.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/calibre/rootfs/etc/cont-init.d/90-ingress.sh b/calibre/rootfs/etc/cont-init.d/90-ingress.sh index f45531dd0..607d52126 100755 --- a/calibre/rootfs/etc/cont-init.d/90-ingress.sh +++ b/calibre/rootfs/etc/cont-init.d/90-ingress.sh @@ -10,7 +10,8 @@ SUBFOLDER="$(bashio::addon.ingress_entry)" cp /defaults/default.conf "${NGINX_CONFIG}" # Keep only the first (non-SSL) server block -awk -v n=4 '/server/{n--}; n > 0' "${NGINX_CONFIG}" > tmpfile +# Keep only the first (non-SSL) server block +awk -v n=2 '/^[[:space:]]*server[[:space:]]*\{/{n--} n>0' "${NGINX_CONFIG}" > tmpfile mv tmpfile "${NGINX_CONFIG}" # Remove ipv6