# ========================================== # WealthWise Backend Environment Variables # ========================================== # Copy this file to .env and fill in your actual values # DO NOT commit .env to version control! # ========================================== # Application Configuration # ========================================== PROJECT_NAME=WealthWise API_V1_STR=/api/v1 VERSION=1.0.0 DEBUG=False # ========================================== # Database Configuration (Self-Hosted PostgreSQL) # ========================================== # For Docker Compose: DATABASE_URL=postgresql+asyncpg://postgres:postgres@localhost:5432/wealthwise # For production (update with your actual values): # DATABASE_URL=postgresql+asyncpg://user:password@your-db-host:5432/wealthwise # Database Pool Configuration DB_POOL_SIZE=20 DB_MAX_OVERFLOW=10 DB_POOL_PRE_PING=True DB_ECHO=False # ========================================== # Security & Authentication # ========================================== # CRITICAL: Generate a strong secret key for JWT signing in production! # Use: openssl rand -hex 32 SECRET_KEY=your-super-secret-key-change-this-in-production # JWT Configuration ALGORITHM=HS256 ACCESS_TOKEN_EXPIRE_MINUTES=30 # ========================================== # CORS Configuration # ========================================== # Comma-separated list of allowed origins # For development, include your frontend dev server CORS_ORIGINS=http://localhost:5173,http://localhost:3000,http://127.0.0.1:5173 # ========================================== # Logging # ========================================== LOG_LEVEL=INFO # ========================================== # Optional: Monitoring (Future) # ========================================== # SENTRY_DSN=