# Environment mode: dev or prod ENVIRONMENT=dev # App settings APP_NAME=Blog API APP_DEBUG=false APP_HOST=0.0.0.0 APP_PORT=8000 # Database settings # For dev (SQLite): DB_URL=sqlite+aiosqlite:///./blog.db # For prod (PostgreSQL): DB_URL=postgresql+asyncpg://user:pass@host:port/db # Or use individual DB_* vars for prod (see below) DB_URL= DB_ECHO=false # PostgreSQL-specific settings (used in prod when DB_URL is not set) DB_HOST=localhost DB_PORT=5432 DB_USER=postgres DB_PASSWORD=postgres DB_NAME=blog # Security settings (REQUIRED) SECURITY_SECRET_KEY=your-secret-key-here-change-in-production SECURITY_ACCESS_TOKEN_EXPIRE_MINUTES=30 # Keycloak settings (REQUIRED for authentication) KC_SERVER_URL=http://localhost:8080 KC_REALM=blog KC_CLIENT_ID=blog-api KC_CLIENT_SECRET=your-keycloak-client-secret-here KC_TOKEN_CACHE_TTL=60