refactor(config): add env parsing helpers and tighten startup validation

This commit is contained in:
2026-03-29 18:47:50 +08:00
parent 3ce15d9762
commit 114d6ff2f5
3 changed files with 117 additions and 3 deletions

View File

@@ -9,6 +9,9 @@ DATABASE_URL="postgresql://postgres:postgres@localhost:5432/friendolls_dev?schem
# Redis
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_REQUIRED=false
REDIS_CONNECT_TIMEOUT_MS=5000
REDIS_STARTUP_RETRIES=10
# JWT Configuration
JWT_SECRET=replace-with-strong-random-secret