Last updated 2026-05-18

Configuration

All runtime configuration is supplied through environment variables.

VariableDefaultDescription
QUOTA_PRODUCTdefaultDefault product namespace for Redis keys.
QUOTA_ENVIRONMENTlocalDefault environment namespace for Redis keys.
QUOTA_GRPC_BIND_ADDR0.0.0.0:8080gRPC listener.
QUOTA_REDIS_URLredis://localhost:6379/0Redis connection URL.
QUOTA_REDIS_MODEsingle_primaryOnly supported Redis topology in v1.
QUOTA_EVENT_SINKnonenone, stdout, or postgres.
QUOTA_EVENT_DATABASE_URLPostgres URL for usage events.
QUOTA_METRICS_BIND_ADDR0.0.0.0:9090Prometheus metrics listener.
QUOTA_TLS_ENABLEDfalseEnable TLS for gRPC.
QUOTA_TLS_CERT_FILE/etc/quota/tls/server.crtServer certificate path.
QUOTA_TLS_KEY_FILE/etc/quota/tls/server.keyServer key path.
QUOTA_MTLS_ENABLEDfalseRequire client certs for transport security.
QUOTA_MTLS_CLIENT_CA_FILE/etc/quota/tls/client-ca.crtClient CA path.
QUOTA_LOG_LEVELinfoStructured log level.

No auth config

There are no JWT, API key, RBAC, tenant auth, or user auth settings. Those controls belong outside this service.