Files
localmodelroutex/.env.example
LovroG05 abecc4b888
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
feat: export request statistics to InfluxDB 3
Add an optional exporter that writes one point per proxied request to
the InfluxDB 3 write endpoint. Points are batched in memory and flushed
by size or interval. The exporter is off until GATEWAY_INFLUX_URL is set.
2026-10-11 17:20:14 +02:00

43 lines
1.9 KiB
Plaintext

# ── Required ──────────────────────────────────────────────────────────────────
# 64 hex characters (32 random bytes). Generate with:
# openssl rand -hex 32
GATEWAY_SECURITY_ENCRYPTION_KEY=
# Canonical public URL (used to build OIDC redirect_uri)
GATEWAY_SERVER_PUBLIC_URL=https://lmr.example.com
GATEWAY_OIDC_ISSUER=https://your-oidc-provider.example.com
GATEWAY_OIDC_CLIENT_ID=
GATEWAY_OIDC_CLIENT_SECRET=
GATEWAY_OIDC_ADMIN_GROUP=
# ── Database ──────────────────────────────────────────────────────────────────
# compose.yml (bundled): postgres runs inside the container — leave this as-is.
# compose.standard.yml: set host to the postgres service name, e.g.:
# GATEWAY_DB_URL=postgres://lmr:lmr@postgres:5432/lmr?sslmode=disable
GATEWAY_DB_URL=postgres://lmr:lmr@localhost:5432/lmr?sslmode=disable
# ── Optional ──────────────────────────────────────────────────────────────────
# GATEWAY_SERVER_PORT=8080
# GATEWAY_SERVER_ENV=production
# GATEWAY_DB_MAX_CONNS=20
# GATEWAY_DB_MIN_CONNS=2
# GATEWAY_CATALOG_SYNC_INTERVAL=30m
# InfluxDB 3 statistics exporter. Off until GATEWAY_INFLUX_URL is set.
# GATEWAY_INFLUX_URL=http://influxdb:8181
# GATEWAY_INFLUX_TOKEN=
# GATEWAY_INFLUX_DATABASE=lmr
# GATEWAY_INFLUX_MEASUREMENT=lmr_request
# GATEWAY_INFLUX_FLUSH_INTERVAL=10s
# GATEWAY_INFLUX_BATCH_SIZE=500
# Host port to expose (maps to container :8080)
# PORT=8080
# Postgres credentials (bundled and compose.standard.yml postgres service)
# PGUSER=lmr
# PGPASSWORD=lmr
# PGDATABASE=lmr