bank-statement-api / .env.example
3v324v23's picture
Merge Conflict solved | Build error solved
205f25f
Raw History Blame Contribute Delete
2.08 kB
# Copy this file to .env and fill in real values.
# NEVER commit .env to version control.
# The real .env was accidentally committed during development β€” treat all secrets as compromised and rotate them before deploying.
GOOGLE_API_KEY=your-google-gemini-api-key
# ============================================================
# DATABASE β€” PostgreSQL connection string
# Testing: NeonDB β†’ postgresql://user:pass@ep-xxx.us-east-2.aws.neon.tech/neondb?sslmode=require
# Production: Azure PG β†’ postgresql://user:pass@server.postgres.database.azure.com/db?sslmode=require
# Only this one line ever changes between environments. No code changes needed.
# ============================================================
DATABASE_URL=postgresql://username:password@ep-xxx.us-east-2.aws.neon.tech/neondb?sslmode=require
# ============================================================
# JWT Auth
# Generate with: python -c "import secrets; print(secrets.token_hex(32))"
# Must be at least 32 characters long.
# ============================================================
JWT_SECRET_KEY=your-very-long-random-secret-key-minimum-32-chars-here
JWT_ALGORITHM=HS256
JWT_ACCESS_TOKEN_EXPIRE_MINUTES=480
# ============================================================
# Seed Secret β€” used to protect the one-time POST /api/v1/auth/seed-users endpoint
# Set to any long random string; keep private.
# ============================================================
SEED_SECRET=your-one-time-seed-secret
# ============================================================
# CORS β€” comma-separated list of allowed frontend origins
# Example: CORS_ORIGINS=https://your-app.vercel.app,https://custom-domain.com
# Leave empty to allow all origins (dev only)
# ============================================================
CORS_ORIGINS=
# ============================================================
# Environment β€” set to 'production' to disable /docs and /redoc
# ============================================================
ENVIRONMENT=development