remove secret key base

This commit is contained in:
Chris
2026-01-28 12:36:57 -08:00
parent 6f2a3e5b05
commit cedd8cfc35
2 changed files with 11 additions and 1 deletions

View File

@@ -1,7 +1,7 @@
x-shared-env: &shared-env
DATABASE_URL: postgres://postgres:password@postgres:5432
BOOT_MODE: local
SECRET_KEY_BASE: a38fcb39d60f9d146d2a0053a25024b9
SECRET_KEY_BASE: ${SECRET_KEY_BASE:?SECRET_KEY_BASE is required}
APP_HOST: http://localhost:${PORT:-3000}
LOCAL_MODE_PASSWORDLESS: true
ALLOWED_HOSTNAME: "*"

View File

@@ -94,6 +94,16 @@ if [ -t 0 ]; then # Only prompt if running in interactive terminal
port=${port:-3456}
fi
echo -n "Generating secrets..."
# Generate SECRET_KEY_BASE if not already set in .env
if [ -f .env ] && grep -q "^SECRET_KEY_BASE=" .env; then
echo " [OK] (using existing)"
else
SECRET_KEY_BASE=$(openssl rand -hex 64)
echo "SECRET_KEY_BASE=$SECRET_KEY_BASE" >> .env
echo " [OK]"
fi
echo "Pulling latest Docker images..."
# Pull latest images and start docker compose