29f0f9b468
- Implement zerolog logger package with configurable levels - Add contextual logging middleware (request_id, user_id, method, path, status, duration) - Support both JSON (production) and human-readable (development) formats - Add LOG_LEVEL and ENVIRONMENT configuration variables - Replace standard log calls with structured logger throughout application - Integrate logger in HTTP router and auth middleware
32 lines
631 B
Bash
32 lines
631 B
Bash
DB_PATH=./data/apocapoc.db
|
|
|
|
PORT=8080
|
|
APP_URL=http://localhost:8080
|
|
|
|
JWT_SECRET=change-me-in-production
|
|
JWT_EXPIRY=1h
|
|
REFRESH_TOKEN_EXPIRY=7d
|
|
|
|
DEFAULT_TIMEZONE=UTC
|
|
|
|
# Email Configuration (optional - required for email features)
|
|
SMTP_HOST=
|
|
SMTP_PORT=587
|
|
SMTP_USER=
|
|
# Note: Escape $ signs with $$ (e.g., pa$word becomes pa$$word)
|
|
SMTP_PASSWORD=
|
|
SMTP_FROM=noreply@example.com
|
|
|
|
# Application Branding (optional - override support email if needed)
|
|
SUPPORT_EMAIL=contact@apocapoc.app
|
|
|
|
# Email Features
|
|
SEND_WELCOME_EMAIL=false
|
|
|
|
# Registration Control
|
|
REGISTRATION_MODE=open
|
|
|
|
# Logging Configuration
|
|
LOG_LEVEL=info
|
|
ENVIRONMENT=production
|