mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-31 12:54:04 +02:00
Update 90-ingress.sh
This commit is contained in:
@@ -10,7 +10,8 @@ SUBFOLDER="$(bashio::addon.ingress_entry)"
|
|||||||
cp /defaults/default.conf "${NGINX_CONFIG}"
|
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=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}"
|
mv tmpfile "${NGINX_CONFIG}"
|
||||||
|
|
||||||
# Remove ipv6
|
# Remove ipv6
|
||||||
|
|||||||
Reference in New Issue
Block a user