mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-10 18:01:03 +01:00
Update 32-nginx_ingress.sh
This commit is contained in:
@@ -36,8 +36,8 @@ if [ -f "$CONFIG_LOCATION" ]; then
|
||||
sed -i "/AuthenticationType/d" "$CONFIG_LOCATION"
|
||||
sed -i "2a <AuthenticationType>DisabledForLocalAddresses</AuthenticationType>" "$CONFIG_LOCATION"
|
||||
# Disable local auth
|
||||
sed -i "/AuthenticationMethod/d" "$CONFIG_LOCATION"
|
||||
sed -i "2a <AuthenticationMethod>external</AuthenticationMethod>" "$CONFIG_LOCATION"
|
||||
# sed -i "/AuthenticationMethod/d" "$CONFIG_LOCATION"
|
||||
# sed -i "2a <AuthenticationMethod>external</AuthenticationMethod>" "$CONFIG_LOCATION"
|
||||
else
|
||||
bashio::log.warning "---------------------------"
|
||||
bashio::log.info "Disabling ingress and enabling authentification"
|
||||
@@ -45,4 +45,4 @@ if [ -f "$CONFIG_LOCATION" ]; then
|
||||
sed -i "/UrlBase/d" "$CONFIG_LOCATION"
|
||||
sed -i "/<AuthenticationMethod>external/d" "$CONFIG_LOCATION"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user