Skip to content

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

PageDescription
App ConfigAll backend and frontend environment variables
DatabasePostgreSQL setup, connection pooling, migrations
SecurityJWT authentication, CORS, rate limiting, security headers
MonitoringPrometheus targets, metrics, alert rules
GitOpsGit 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 string
  • POSTGRES_PASSWORD — set a strong password
  • CORS_ORIGINS — restrict to your frontend domain
  • ENVIRONMENT=production and DEV_MODE=false

See the individual pages for full details.