Update 32-nginx_ingress.sh

This commit is contained in:
Alexandre
2023-11-23 09:20:24 +01:00
committed by GitHub
parent 5143dc30bb
commit c6c45f6441

View File

@@ -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