Configuration reference
Stack (deploy/.env)
| Variable | Meaning |
|---|---|
NGAMIA_DOMAIN | Public API host name, e.g. api.ngamia.com |
ACME_EMAIL | Certificate notices (Caddy or certbot) |
MODEL_GATEWAY_URL | OpenAI-compatible model gateway NAK calls with each workspace’s key |
PLATFORM_DEFAULT_MODEL | Model for agents and workspaces that set none |
PLATFORM_CORS_ORIGINS | Comma-separated browser origins allowed to call the API |
NAK_TE_ENDPOINT, NAK_TE_ALLOWED_TOOLS | Tools engine and the exact tool_id@version names agents may use |
NAK_KUMBU_ENDPOINT | Memory engine |
POSTGRES_IMAGE, *_IMAGE | Image overrides; pin by digest in production |
PLATFORM_HOST_PORT, KIDA_HOST_PORT | Loopback ports on a shared host (defaults 4710, 4711) |
| Key IDs and public keys | Appended by bin/init-secrets.sh |
Platform service
| Variable | Required | Meaning |
|---|---|---|
PLATFORM_BIND | Listen address (image: 0.0.0.0:8080) | |
PLATFORM_PUBLIC_URL | Public origin (default https://api.ngamia.com) | |
PLATFORM_DATABASE_URL_FILE | yes | File with the PostgreSQL URL |
PLATFORM_DATA_KEY_FILE | yes | 32-byte key encrypting workspace secrets |
PLATFORM_KIDA_ISSUER, PLATFORM_KIDA_JWKS_URL | yes | KIDA issuer and keys for people’s tokens |
PLATFORM_KIDA_URL, PLATFORM_KIDA_CALLER_CREDENTIAL_FILE | KIDA caller API for sign-in, sign-up and invites | |
PLATFORM_ASSERTION_KEY_FILE, PLATFORM_ASSERTION_KEY_ID | yes | Ed25519 key for calls to NAK |
PLATFORM_NAK_URL, PLATFORM_NAK_ASSERTION_KEYS | yes | NAK and the public keys it signs with |
PLATFORM_UBONGO_URL, PLATFORM_UBONGO_ADMIN_TOKEN_FILE | Knowledge engine | |
PLATFORM_CAMEL_CLIENT_ID, PLATFORM_CAMEL_ISSUER | Camel Accounts client for the hosted sign-in (ngamia-agent-web) and issuer | |
PLATFORM_DOCS_URL | Linked from the sign-in page (default https://docs.ngamia.com) | |
PLATFORM_AUTH_REQUESTS_PER_MINUTE | Sign-in requests per client IP (default 60); nginx must set X-Real-IP | |
PLATFORM_FAILED_AUTH_PER_MINUTE | Failed authentications per client IP before 429 (default 60) | |
PLATFORM_STREAMS_PER_CALLER, PLATFORM_STREAM_MAX_SECONDS | Concurrent run-event streams per person (×10 per API key) and maximum stream length (default 10, 1800) | |
PLATFORM_METRICS_TOKEN | Bearer token for /metrics (Prometheus text); disabled when unset; never expose publicly | |
PLATFORM_REQUESTS_PER_MINUTE | Per person or key (default 600) | |
PLATFORM_REQUEST_TIMEOUT_SECONDS | Default 120 | |
PLATFORM_ALLOW_PRIVATE_HTTP | Allow http:// engine URLs on private networks | |
PLATFORM_LOG | Log filter (default info) |
Secret files must not be readable by group or others. Each engine’s own variables are listed on its engine page.
Last updated on