refactor: add production features and improve architecture - Add structured configuration with validation - Implement Redis connection pooling - Add database migrations system - Change API methods: GET /set → POST /set, GET /delete → DELETE /delete - Add health check endpoint - Add graceful shutdown and structured logging - Update frontend for new API methods - Add open source attribution
21 lines
No EOL
493 B
Text
21 lines
No EOL
493 B
Text
# Server Configuration
|
|
HOST=0.0.0.0
|
|
PORT=3000
|
|
|
|
# Database Configuration
|
|
DATABASE_URL=postgres://postgres:postgres@postgres:5432/postgres
|
|
DB_MAX_CONNECTIONS=10
|
|
DB_CONNECT_TIMEOUT=30
|
|
|
|
# Redis Configuration
|
|
REDIS_URL=redis://dragonfly:6379
|
|
REDIS_POOL_SIZE=5
|
|
REDIS_CONNECT_TIMEOUT=10
|
|
|
|
# Discord OAuth Configuration
|
|
CLIENT_ID=your_discord_client_id
|
|
CLIENT_SECRET=your_discord_client_secret
|
|
REDIRECT_URI=https://your.domain/auth/discord/callback
|
|
|
|
# Logging (optional)
|
|
RUST_LOG=info,timezone_db=debug |