modified sonarr auth

This commit is contained in:
kisfenyo
2025-12-30 09:18:37 +01:00
parent afcc25e704
commit c93e01e3b5
+5
View File
@@ -800,6 +800,11 @@ spec:
/tmp/config/sonarr-config.json > /config/sonarr-config.json
fi
bun run dist/index.js --init
if [ -f /config/config.xml ]; then
sed -i 's|<AuthenticationMethod>Forms</AuthenticationMethod>|<AuthenticationMethod>External</AuthenticationMethod>|g' /config/config.xml
sed -i 's|<AuthenticationRequired>Enabled</AuthenticationRequired>|<AuthenticationRequired>DisabledForLocalAddresses</AuthenticationRequired>|g' /config/config.xml
echo "Patched config.xml for external authentication"
fi
volumeMounts:
- name: sonarr-config-volume
mountPath: /config