mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-10 18:01:03 +01:00
Update 90-ingress.sh
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user