Environment variables
Server, worker, and web configuration reference.
These values are defined in .env.example and validated in the env packages.
Server and worker
Required:
DATABASE_URLREDIS_URLBETTER_AUTH_SECRET(minimum 32 chars)BETTER_AUTH_URL(public URL of the API server)CORS_ORIGIN(web app URL)
Optional:
RATE_LIMIT_EVENTS_PER_MINUTE(default1000)RATE_LIMIT_EVENTS_PER_HOUR(default50000)SMTP_HOSTSMTP_PORTSMTP_USERSMTP_PASSWORDSMTP_FROMSMTP_SECUREPUBLIC_WEB_URL
Web app
VITE_SERVER_URL(API server base URL)
Docker defaults
Docker Compose provides defaults so you can run without a custom .env file:
DATABASE_URL=postgres://tryopentrace:postgres@postgres:5432/tryopentrace
REDIS_URL=redis://redis:6379
BETTER_AUTH_SECRET=change-me-change-me-change-me
BETTER_AUTH_URL=http://localhost:8080
CORS_ORIGIN=http://localhost:3000Minimal local setup
If you only change one value, update BETTER_AUTH_SECRET to a random string.