Update 90-ingress.sh

This commit is contained in:
Alexandre
2023-07-28 16:00:39 +02:00
committed by GitHub
parent 55a6a26a2d
commit 4e28c9f91e

View File

@@ -6,7 +6,7 @@
# NGINX SETTING #
#################
cp /etc/nginx/http.d/default.conf /etc/nginx/http.d/ingress.conf
cp /defaults/default.conf /etc/nginx/http.d/ingress.conf
ingress_port=$(bashio::addon.ingress_port)
#ingress_interface=$(bashio::addon.ip_address)
@@ -14,5 +14,7 @@ sed -i "s/3001/0001/g" /etc/nginx/http.d/ingress.conf
sed -i "s/3000/${ingress_port}/g" /etc/nginx/http.d/ingress.conf
#sed -i "s/%%interface%%/${ingress_interface}/g" /etc/nginx/sites-available/ingress.conf
nginx -s reload &>/dev/null || true
# Implement SUBFOLDER value
sed -i "1a SUBFOLDER=$(bashio::addon.ingress_url)" $(find /etc/s6-overlay/s6-rc.d -name "run" -type f)