From de34808c400c7f7b477f50c8444291fb8e135696 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Mon, 20 Apr 2026 09:43:00 +0200 Subject: [PATCH] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- bazarr/rootfs/etc/cont-init.d/32-nginx_ingress.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bazarr/rootfs/etc/cont-init.d/32-nginx_ingress.sh b/bazarr/rootfs/etc/cont-init.d/32-nginx_ingress.sh index 153a57576..5bebf042b 100644 --- a/bazarr/rootfs/etc/cont-init.d/32-nginx_ingress.sh +++ b/bazarr/rootfs/etc/cont-init.d/32-nginx_ingress.sh @@ -45,12 +45,16 @@ if [ -f "$CONFIG_LOCATION" ]; then bashio::log.green "Ingress is enabled, and external authentication is enabled" # Set base_url sed -i "s/ base_url:.*/ base_url: $slug/" "$CONFIG_LOCATION" + # Enable Bazarr auth when leaving ingress_noauth + sed -i '/^auth:/,/^[^ ]/{ s/ type:.*/ type: form/ }' "$CONFIG_LOCATION" ;; # No ingress mode, with authentication noingress_auth) bashio::log.green "Disabling ingress and enabling authentication" bashio::log.yellow "WARNING : Ingress is disabled so the app won't be available from HA itself !" sed -i "s/ base_url:.*/ base_url: ''/" "$CONFIG_LOCATION" + # Enable Bazarr auth when leaving ingress_noauth + sed -i '/^auth:/,/^[^ ]/{ s/ type:.*/ type: form/ }' "$CONFIG_LOCATION" ;; esac