mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-17 12:59:13 +02:00
Update run
This commit is contained in:
@@ -24,12 +24,7 @@ fi
|
|||||||
|
|
||||||
# Disable Ingress
|
# Disable Ingress
|
||||||
if bashio::config.true "ingress_disabled"; then
|
if bashio::config.true "ingress_disabled"; then
|
||||||
bashio::log.warning "Ingress is disabled. You'll need to connect using ip:port"
|
bashio::log.info "Ingress is disabled, removing base url"
|
||||||
|
|
||||||
# Adapt ingress.conf
|
|
||||||
sed -i "/proxy_pass/i root /etc;" /etc/nginx/servers/ingress.conf
|
|
||||||
sed -i "/proxy_pass/i try_files '' /index.html =404;" /etc/nginx/servers/ingress.conf
|
|
||||||
sed -i "/proxy_pass/d" /etc/nginx/servers/ingress.conf
|
|
||||||
|
|
||||||
# Remove BaseUrl
|
# Remove BaseUrl
|
||||||
if grep -q "radarr" "$CONFIG_LOCATION"; then
|
if grep -q "radarr" "$CONFIG_LOCATION"; then
|
||||||
|
|||||||
Reference in New Issue
Block a user