Appearance
Configuration Reference
This page summarizes key runtime configuration groups.
How to use this page
- Start here before any non-local deployment.
- Keep one configuration set per environment.
- Validate configuration with smoke tests before production cutover.
Core runtime
AIONIS_MODEAPP_ENVPORTDATABASE_URL
Auth and isolation
MEMORY_AUTH_MODEMEMORY_API_KEYS_JSONMEMORY_JWT_HS256_SECRETMEMORY_TENANT_IDMEMORY_SCOPE
Embeddings
EMBEDDING_PROVIDEREMBEDDING_DIM- Provider-specific key/model variables.
Limits and quotas
RATE_LIMIT_ENABLEDTENANT_QUOTA_ENABLED- Endpoint-specific RPS/burst settings.
Recommended workflow
- Keep separate env values for dev/staging/prod.
- Store secrets outside source control.
- Validate config with staging smoke and production gate before rollout.
Configuration workflow
- Define the baseline runtime and database settings.
- Enable auth and tenant isolation.
- Add embedding provider configuration if semantic recall is required.
- Turn on limits and quotas before exposure to shared traffic.
- Promote the exact validated config set to the next environment.
Baseline production settings
| Key | Typical production value | Why |
|---|---|---|
AIONIS_MODE | service | Enables service-oriented runtime profile |
APP_ENV | prod | Activates production guard behavior |
MEMORY_AUTH_MODE | api_key or api_key_or_jwt | Prevents unauthenticated writes/reads |
RATE_LIMIT_ENABLED | true | Protects API under burst load |
TENANT_QUOTA_ENABLED | true | Enforces tenant-level fairness and isolation |
TRUST_PROXY | true (behind trusted proxy) | Correct client IP handling for limits/audit |
CORS_ALLOW_ORIGINS | explicit allowlist | Reduces cross-origin abuse risk |
Before shipping to production
- Confirm
MEMORY_AUTH_MODEis notoff. - Confirm
DATABASE_URLpoints to the intended environment. - Confirm embedding settings match the retrieval behavior you expect.
- Confirm quotas and rate limits are enabled for shared use.
- Confirm CORS and proxy settings match the real network path.