Variable | Description | Example |
---|---|---|
DATABASE_URL | URL for database communication (PostgreSQL supported). | postgresql://username:password@host:port/db_name |
Variable | Description |
---|---|
DATABASE_HOST | Host of the database. |
DATABASE_USERNAME | Database username. |
DATABASE_PASSWORD | Password for the DB user. |
DATABASE_NAME | Database name. |
Variable | Description | Example |
---|---|---|
DATABASE_DIRECT_URL | Direct URL for database migrations (cannot use pg-bouncer). | postgresql://username:password@host:port/db_name |
DATABASE_SSL | Set to ‘true’ if using a secure network. | false |
Variable | Description | Example |
---|---|---|
NEXTAUTH_SECRET | Secret for encrypting JWT and hashing tokens. | your secret |
NEXTAUTH_URL | URL for your domain. | https://yourdomain.com |
ENABLE_CREDENTIALS_AUTH | Enable credentials (email password) authentication. | false |
Variable | Description | OAuth Redirect URL |
---|---|---|
Azure | AZURE_AD_CLIENT_ID AZURE_AD_CLIENT_SECRET AZURE_AD_TENANT_ID | /api/auth/callback/azure-ad |
GOOGLE_CLIENT_ID GOOGLE_CLIENT_SECRET | /api/auth/callback/google | |
Okta | OKTA_CLIENT_ID OKTA_CLIENT_SECRET OKTA_ISSUER | /api/auth/callback/okta |
GitHub | GITHUB_ID GITHUB_SECRET | /api/auth/callback/github |
Variable | Description | Example |
---|---|---|
BUCKET_NAME | Name of the bucket | my_bucket |
Provider | Variables | Comment |
---|---|---|
AWS S3 | APP_AWS_ACCESS_KEY APP_AWS_SECRET_KEY APP_AWS_REGION | |
Google Cloud Storage | APP_GCS_PROJECT_ID APP_GCS_CLIENT_EMAIL APP_GCS_PRIVATE_KEY | Private key should be base64 encoded. |
Azure Blob Storage | APP_AZURE_STORAGE_ACCOUNT APP_AZURE_STORAGE_ACCESS_KEY |
REDIS_URL
or REDISHOST
and REDISPORT
can be used.
Variable | Description | Example |
---|---|---|
REDIS_URL | Full Redis URL. | redis://127.0.0.1:6379/0 |
REDISHOST | Redis host (useful with Google Cloud Run). | 127.0.0.1 |
REDISPORT | Redis port. | 6379 |
ADMIN_AUTH_TOKEN
environment variable. Set it to a non-empty value to
be able to investigate your cache-based queueing system.Variable | Description | Example |
---|---|---|
EMAIL_SERVER_HOST | Mail server host. | "servicehost" |
EMAIL_SERVER_PORT | Mail server port. | "4000" |
EMAIL_SERVICE | Email service provider. | "gmail" |
EMAIL_USER | Email username. | "username" |
EMAIL_PASS | Email password. | "password" |
EMAIL_FROM | Sender email address. | "noreply@service.com" |
3000
. Ensure this port is exposed.