Configuration
SLOzy uses environment variables for all configuration. The Go backend reads settings via internal/config/config.go at startup, and the React frontend uses Vite env vars prefixed with VITE_.
Sections
| Page | Description |
|---|---|
| App Config | All backend and frontend environment variables |
| Database | PostgreSQL setup, connection pooling, migrations |
| Security | JWT authentication, CORS, rate limiting, security headers |
| Monitoring | Prometheus targets, metrics, alert rules |
| GitOps | Git repository sync for SLO definitions |
Quick Reference
Backend config is loaded from environment variables with sensible defaults defined in internal/config/config.go. Frontend config is set in frontend/.env.production. For production, copy .env.production and adjust:
JWT_SECRET— set to a random 32+ char stringPOSTGRES_PASSWORD— set a strong passwordCORS_ORIGINS— restrict to your frontend domainENVIRONMENT=productionandDEV_MODE=false
See the individual pages for full details.