Skip to content

Configuration โ€‹

Environment values are validated at process startup. The complete templates are packages/env/.env.example for native development and .env.docker.example for Compose.

Minimum configuration โ€‹

At minimum, configure the public web and server URLs, DATABASE_URL, and BETTER_AUTH_SECRET. Production deployments also require a shared Redis unless the explicit single-instance fallback is enabled.

Optional capabilities โ€‹

Provider credentials activate optional capabilities. Each stays off until its configuration is present.

CapabilityConfiguration
OAuthGOOGLE_*, GITHUB_*
StripeSTRIPE_SECRET_KEY, webhook secret, price and meter maps
EmailMAIL_PROVIDER=resend or smtp plus provider credentials
Object storageMINIO_* / S3-compatible endpoint and bucket
Image deliveryVITE_IMGPROXY_* and an allowlisted source origin
MetricsMETRICS_ENABLED and METRICS_BEARER_TOKEN
OpenAPI UIENABLE_OPEN_API_DOCS=true

WARNING

Never commit populated environment files. The templates exist so that real values stay out of version control.

Released under the MIT License.