Files
epirent-cache-proxy/.env.sample

31 lines
543 B
Plaintext

# Server
PORT=8080
# Epirent
UPSTREAM_BASE=http://127.0.0.1
EPI_NO_SESSION=true
EPI_ACCESS_TOKEN=xxxx
# Cache
TTL_SECONDS=120
STALE_SECONDS=120
# Optional: Pfadspezifische TTL (Regex = Sekunden), mehrere Regeln mit |
# Beispiel: /api\/v1\/search=30|/api\/v1\/reports=1800
ROUTE_TTLS=
# Redis (leer = in-memory LRU)
REDIS_URL=
# CORS
CORS=false
CORS_ORIGIN=*
# Minimal-Rate-Limit (Requests pro Sekunde, 0 = aus)
RATE_LIMIT_RPS=0
# Purge (optional)
PURGE_SECRET=
# --- Metriken (zweiter Port) ---
METRICS_PORT=9090
METRICS_ALLOW_ORIGIN=*