Last updated 2026-05-18
Configuration
All runtime configuration is supplied through environment variables.
| Variable | Default | Description |
|---|---|---|
QUOTA_PRODUCT | default | Default product namespace for Redis keys. |
QUOTA_ENVIRONMENT | local | Default environment namespace for Redis keys. |
QUOTA_GRPC_BIND_ADDR | 0.0.0.0:8080 | gRPC listener. |
QUOTA_REDIS_URL | redis://localhost:6379/0 | Redis connection URL. |
QUOTA_REDIS_MODE | single_primary | Only supported Redis topology in v1. |
QUOTA_EVENT_SINK | none | none, stdout, or postgres. |
QUOTA_EVENT_DATABASE_URL | Postgres URL for usage events. | |
QUOTA_METRICS_BIND_ADDR | 0.0.0.0:9090 | Prometheus metrics listener. |
QUOTA_TLS_ENABLED | false | Enable TLS for gRPC. |
QUOTA_TLS_CERT_FILE | /etc/quota/tls/server.crt | Server certificate path. |
QUOTA_TLS_KEY_FILE | /etc/quota/tls/server.key | Server key path. |
QUOTA_MTLS_ENABLED | false | Require client certs for transport security. |
QUOTA_MTLS_CLIENT_CA_FILE | /etc/quota/tls/client-ca.crt | Client CA path. |
QUOTA_LOG_LEVEL | info | Structured log level. |
No auth config
There are no JWT, API key, RBAC, tenant auth, or user auth settings. Those controls belong outside this service.