Reference
Environment and settings
Set these values in your .env file. Never commit that file.
Core
| Variable | Purpose |
|---|---|
| DATABASE_URL | PostgreSQL connection string. |
| NODE_ENV | Use production on live servers. |
| PORT | Port the server listens on. |
| APP_URL | Public HTTPS address, used for links and callbacks. |
| SESSION_SECRET | Random secret for sessions. |
| JWT_SECRET | Random secret for signing tokens. |
Providers
| Variable | Purpose |
|---|---|
| TWILIO_ACCOUNT_SID | Twilio account ID. |
| TWILIO_AUTH_TOKEN | Twilio auth token. |
| ELEVENLABS_API_KEY | ElevenLabs API key. |
| STRIPE_SECRET_KEY | Stripe server key. |
| VITE_STRIPE_PUBLIC_KEY | Stripe publishable key, exposed to the browser. |
| Variable | Purpose |
|---|---|
| SMTP_HOST | Mail server address. |
| SMTP_PORT | Mail server port. |
| SMTP_USER | Mail account username. |
| SMTP_PASS | Mail account password. |
Generate secrets
Create a different value for each secret:
openssl rand -base64 32