# Git Commit Message
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
This commit is contained in:
parent
ad6c9b7095
commit
6bfd298455
21 changed files with 842 additions and 3124 deletions
21
.env.example
Normal file
21
.env.example
Normal file
|
@ -0,0 +1,21 @@
|
|||
# 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
|
Loading…
Add table
Add a link
Reference in a new issue