Skip to content

Environment Variables

VariableRequiredDefaultDescription
PORTNo3000Backend HTTP port
DATABASE_URLYesPostgreSQL connection string
LOG_LEVELNoinfoOne of: debug, info, warn, error
ADMIN_TOKENYesBearer token for admin API (min 16 chars)
VariableRequiredDefaultDescription
BETTER_AUTH_SECRETYesSession signing key (min 32 chars)
BETTER_AUTH_BASE_URLYesPublic base URL, used as JWT issuer
AUTH_COOKIE_DOMAINYesSession cookie domain for SSO (e.g. .example.com)
SAAS_TRUSTED_ORIGINSNoComma-separated allowed CORS origins
VariableRequiredDefaultDescription
OAUTH_LOGIN_PAGENo/loginPath to the login page
OAUTH_CONSENT_PAGENo/consentPath to the consent page
VariableRequiredDescription
GOOGLE_CLIENT_IDNoGoogle OAuth client ID
GOOGLE_CLIENT_SECRETNoGoogle OAuth client secret
APPLE_CLIENT_IDNoApple Services ID
APPLE_TEAM_IDNoApple Developer Team ID
APPLE_KEY_IDNoApple Sign In key ID
APPLE_PRIVATE_KEYNoApple .p8 private key content
GITHUB_CLIENT_IDNoGitHub OAuth App client ID
GITHUB_CLIENT_SECRETNoGitHub OAuth App client secret
VariableRequiredDescription
LEMON_SQUEEZY_API_KEYNoLemonSqueezy API key
LEMON_SQUEEZY_STORENoLemonSqueezy store ID
LEMON_SQUEEZY_SIGNING_SECRETNoWebhook signing secret