Configuration

All configuration is managed through environment variables in the .env file.

Core Settings

API_PORT=8080
ENVIRONMENT=production
LOG_LEVEL=info

Database (PostgreSQL)

DATABASE_URL=postgres://user:pass@host:port/dbname
DB_MAX_OPEN_CONNS=25
DB_MAX_IDLE_CONNS=5

SSL & Let's Encrypt

Yercekimsiz uses CertMagic for automatic SSL.

ACME_EMAIL=admin@yourdomain.com
CERTS_STORAGE=/app/certs
# Staging URL for testing:
# ACME_DIRECTORY_URL=https://acme-staging-v02.api.letsencrypt.org/directory

Redis Configuration

REDIS_ADDR=localhost:6379
REDIS_PASSWORD=
REDIS_DB=0
REDIS_POOL_SIZE=10

WAF Engine Settings

  • UPSTREAM_TIMEOUT: Default 30s
  • MAX_REQUEST_BODY: Default 10MB
  • BOT_DETECTION_ENABLED: true / false