Configurazione
Tutta la configurazione è gestita tramite variabili d'ambiente nel file .env.
Impostazioni Principali
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 usa CertMagic per SSL automatico.
ACME_EMAIL=admin@yourdomain.com
CERTS_STORAGE=/app/certs
# Staging URL for testing:
# ACME_DIRECTORY_URL=https://acme-staging-v02.api.letsencrypt.org/directoryConfigurazione Redis
REDIS_ADDR=localhost:6379
REDIS_PASSWORD=
REDIS_DB=0
REDIS_POOL_SIZE=10Impostazioni Motore WAF
- UPSTREAM_TIMEOUT: Default 30s
- MAX_REQUEST_BODY: Default 10MB
- BOT_DETECTION_ENABLED: true / false