api/constants.py. Variables marked Required in the description must be explicitly set β the application will either fail to boot or behave insecurely without them.
Deployment Modes
Dograh supports two deployment modes, set viaDEPLOYMENT_MODE:
- OSS: The default mode. Designed for self-hosted deployments using Docker Compose β the fastest way to get Dograh running. Uses local JWT authentication and MinIO for storage.
- SaaS: Intended for customised deployments outside of Docker. Authentication and API key management are handled through Dograh Managed Platform Services (MPS), allowing greater flexibility in how the platform is hosted and integrated.
Application
Database
Authentication (OSS)
Authentication (Stack Auth)
Set these whenAUTH_PROVIDER=stack to delegate sign-in to Stack Auth for social login. The project id and publishable client key are public and are served to the browser at runtime via /api/v1/health; the secret server key stays server-side. See Authentication for the full walkthrough.
URLs
Storage
Dograh uses MinIO by default, which is bundled with the self-hosted deployment and requires no external setup. SetENABLE_AWS_S3=true to switch to AWS S3 β typically used for cloud or managed deployments where S3 is already part of the infrastructure.
MinIO (OSS default)
AWS S3 (alternative)
Credentials come from the standard
AWS_ACCESS_KEY_ID / AWS_SECRET_ACCESS_KEY environment variables.
S3-compatible servers (MinIO, rustfs, Ceph, β¦)
The S3 backend can target any S3-compatible server, not just AWS. Prefer it over the MinIO backend when you need presigned URLs against a private bucket: the MinIO backend returns plain unsigned object URLs and relies on the bucket being anonymously public-readable, whereas the S3 backend issues real presigned URLs so the bucket can stay private. To use it, setENABLE_AWS_S3=true and point it at your server with the S3_* overrides above. For example, against rustfs:
Presigned URLs point at
S3_ENDPOINT_URL, so that host must be reachable from the browser. Because browsers fetch transcripts cross-origin, the bucket also needs a CORS rule allowing your appβs origin for GET/HEAD β configure this on the storage server (e.g. via PutBucketCors), not in Dograh.WebRTC
Tracing (Langfuse)
Tracing activates automatically as soon as credentials are available β either via these environment variables (applied to all organizations) or per-organization in the UI under Platform Settings. If neither is set, spans are dropped silently. See the Tracing guide for setup instructions.
Monitoring
Logging
Campaigns
Controls concurrency for Campaigns, Dograhβs bulk outbound calling feature.Further Customisation
The variables documented here cover the standard configuration surface. For advanced customisation β such as integrating additional services or tuning internal behaviour β consult the relevant module alongsideapi/constants.py to understand how each variable is consumed.