.env).
Core Settings
| Variable | Default | Description |
|---|---|---|
PORT | 8080 | HTTP/WebSocket listen port |
DEV_MODE | false | Enable dev mode (auth bypass, verbose errors) |
DATA_DIR | ./data | Base directory for SQLite databases |
LOG_LEVEL | info | Log level (debug, info, warn, error) |
Upstream Services
| Variable | Description |
|---|---|
ENSEMBLE_URL | Ensemble URL (used for model config queries, not inference) |
ENSEMBLE_API_KEY | Ensemble API key (for config queries) |
PODIUM_URL | Podium gateway URL |
PODIUM_API_KEY | Podium API key |
PODIUM_API_PREFIX | Podium API path prefix (default: /api/v1) |
PODIUM_ADMIN_API_KEY | Podium admin key |
PODIUM_ENSEMBLE_URL | Ensemble URL passed to agents for direct inference calls (may differ from gateway’s) |
PODIUM_EXECUTION_TARGET | Default execution target: local, docker, cloud |
PODIUM_DEPLOYMENT_VERSION | Default agent deployment version |
PODIUM_SECRETS_KEY | Encryption key for agent secrets |
Authentication
| Variable | Description |
|---|---|
AUTH0_DOMAIN | Auth0 tenant domain |
AUTH0_CLIENT_ID | Auth0 application client ID |
AUTH0_CLIENT_SECRET | Auth0 application client secret |
AUTH0_AUDIENCE | Auth0 API audience |
Gateway WebSocket
| Variable | Default | Description |
|---|---|---|
VITE_GATEWAY_URL | ws://localhost:8080/ws | WebSocket URL for web client |
External Integrations
| Variable | Description |
|---|---|
GITHUB_APP_ID | GitHub App ID |
GITHUB_APP_PRIVATE_KEY | GitHub App private key |
GITHUB_WEBHOOK_SECRET | Webhook signature secret |
Observability
| Variable | Description |
|---|---|
OTEL_EXPORTER_OTLP_ENDPOINT | OpenTelemetry collector endpoint |
OTEL_SERVICE_NAME | Service name for traces (default: diminuendo) |
AppConfig
TheAppConfig TypeScript module enforces fail-closed production safety: missing required config in production mode causes startup failure rather than falling back to defaults. In dev mode, sensible defaults are used.
30+ configurable parameters covering:
- Server settings (port, timeouts, CORS)
- Auth settings (Auth0, dev mode)
- Upstream service URLs
- Rate limiting thresholds
- Database settings (WAL mode, busy timeout)
- Security settings (CSRF, SSRF, headers)