Add safe password setup recovery mode

This commit is contained in:
svemagie
2026-03-08 04:05:06 +01:00
parent 1558e8b40e
commit 8e759a5cb9
4 changed files with 22 additions and 9 deletions

View File

@@ -18,7 +18,9 @@ if [ -f .env ]; then
fi
: "${SECRET:?SECRET is required}"
: "${PASSWORD_SECRET:?PASSWORD_SECRET is required}"
if [ "${INDIEKIT_ALLOW_PASSWORD_SETUP:-0}" != "1" ]; then
: "${PASSWORD_SECRET:?PASSWORD_SECRET is required}"
fi
# Allow either full Mongo URL or decomposed credentials.
if [ -z "${MONGO_URL:-}" ]; then