Reference

Environment and settings

Set these values in your .env file. Never commit that file.

Core

VariablePurpose
DATABASE_URLPostgreSQL connection string.
NODE_ENVUse production on live servers.
PORTPort the server listens on.
APP_URLPublic HTTPS address, used for links and callbacks.
SESSION_SECRETRandom secret for sessions.
JWT_SECRETRandom secret for signing tokens.

Providers

VariablePurpose
TWILIO_ACCOUNT_SIDTwilio account ID.
TWILIO_AUTH_TOKENTwilio auth token.
ELEVENLABS_API_KEYElevenLabs API key.
STRIPE_SECRET_KEYStripe server key.
VITE_STRIPE_PUBLIC_KEYStripe publishable key, exposed to the browser.

Email

VariablePurpose
SMTP_HOSTMail server address.
SMTP_PORTMail server port.
SMTP_USERMail account username.
SMTP_PASSMail account password.

Generate secrets

Create a different value for each secret:

openssl rand -base64 32