Konfiguration
Alle Konfiguration wird über Umgebungsvariablen in der .env-Datei verwaltet.
Kerneinstellungen
API_PORT=8080
ENVIRONMENT=production
LOG_LEVEL=infoDatenbank (PostgreSQL)
DATABASE_URL=postgres://user:pass@host:port/dbname
DB_MAX_OPEN_CONNS=25
DB_MAX_IDLE_CONNS=5SSL & Let's Encrypt
Yercekimsiz verwendet CertMagic für 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-Konfiguration
REDIS_ADDR=localhost:6379
REDIS_PASSWORD=
REDIS_DB=0
REDIS_POOL_SIZE=10WAF Engine Einstellungen
- UPSTREAM_TIMEOUT: Standard 30s
- MAX_REQUEST_BODY: Standard 10MB
- BOT_DETECTION_ENABLED: true / false