Configuratie
Alle configuratie wordt beheerd via omgevingsvariabelen in het .env-bestand.
Kerninstellingen
API_PORT=8080
ENVIRONMENT=production
LOG_LEVEL=infoDatabase (PostgreSQL)
DATABASE_URL=postgres://user:pass@host:port/dbname
DB_MAX_OPEN_CONNS=25
DB_MAX_IDLE_CONNS=5SSL & Let's Encrypt
Yercekimsiz gebruikt CertMagic voor automatische SSL.
ACME_EMAIL=admin@yourdomain.com
CERTS_STORAGE=/app/certs
# Staging URL for testing:
# ACME_DIRECTORY_URL=https://acme-staging-v02.api.letsencrypt.org/directoryRedis-configuratie
REDIS_ADDR=localhost:6379
REDIS_PASSWORD=
REDIS_DB=0
REDIS_POOL_SIZE=10WAF Engine-instellingen
- UPSTREAM_TIMEOUT: Standaard 30s
- MAX_REQUEST_BODY: Standaard 10MB
- BOT_DETECTION_ENABLED: true / false