Update 90-ingress.sh

This commit is contained in:
Alexandre
2025-08-23 08:56:52 +02:00
committed by GitHub
parent 39ec343f24
commit 0d934c2fef

View File

@@ -9,7 +9,6 @@ SUBFOLDER="$(bashio::addon.ingress_entry)"
# Copy template
cp /defaults/default.conf "${NGINX_CONFIG}"
# Keep only the first (non-SSL) server block
# 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}"