4d2412a0fe
* Add support for AWS SES and SMTP email transports Signed-off-by: Erin Allison <eallison@andrettikarting.com> * Correct environment variable names for new email settings Signed-off-by: Erin Allison <eallison@andrettikarting.com> * Correct option names being passed to nodemailer for SMTP Signed-off-by: Erin Allison <eallison@andrettikarting.com> * Remove use of AWS SDK synthetic default export It apparently causes issues when transpiled/bundled Signed-off-by: Erin Allison <eallison@andrettikarting.com> * Add documentation for new email settings Signed-off-by: Erin Allison <eallison@andrettikarting.com> * Move nodemailer types to devDependencies Signed-off-by: Erin Allison <eallison@andrettikarting.com> * Adjust mail transport error handling Gotta keep the linter happy :) Signed-off-by: Erin Allison <eallison@andrettikarting.com> * Fix typecheck error on MailTransportOptions Signed-off-by: Erin Allison <eallison@andrettikarting.com> * Correct environment variable usage for SMTP email transport Signed-off-by: Erin Allison <eallison@andrettikarting.com> --------- Signed-off-by: Erin Allison <eallison@andrettikarting.com>
105 lines
4.6 KiB
Bash
105 lines
4.6 KiB
Bash
# YOU MIGHT LIKE TO MODIFY THESE VARIABLES
|
|
SESSION_SECRET=abcdef1234
|
|
MAGIC_LINK_SECRET=abcdef1234
|
|
ENCRYPTION_KEY=ae13021afef0819c3a307ad487071c06 # Must be a random 16 byte hex string. You can generate an encryption key by running `openssl rand -hex 16` in your terminal
|
|
LOGIN_ORIGIN=http://localhost:3030
|
|
DATABASE_URL=postgresql://postgres:postgres@localhost:5432/postgres?schema=public
|
|
# This sets the URL used for direct connections to the database and should only be needed in limited circumstances
|
|
# See: https://www.prisma.io/docs/reference/api-reference/prisma-schema-reference#fields:~:text=the%20shadow%20database.-,directUrl,-No
|
|
DIRECT_URL=${DATABASE_URL}
|
|
REMIX_APP_PORT=3030
|
|
APP_ENV=development
|
|
APP_ORIGIN=http://localhost:3030
|
|
ELECTRIC_ORIGIN=http://localhost:3060
|
|
NODE_ENV=development
|
|
V3_ENABLED=true
|
|
|
|
# Redis is used for the v3 queuing and v2 concurrency control
|
|
REDIS_HOST="localhost"
|
|
REDIS_PORT="6379"
|
|
REDIS_TLS_DISABLED="true"
|
|
|
|
DEV_OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:3030/otel"
|
|
DEV_OTEL_BATCH_PROCESSING_ENABLED="0"
|
|
|
|
# OPTIONAL VARIABLES
|
|
# This is used for validating emails that are allowed to log in. Every email that do not match this regex will be rejected.
|
|
# WHITELISTED_EMAILS="authorized@yahoo\.com|authorized@gmail\.com"
|
|
# Accounts with these emails will get global admin rights. This grants access to the admin UI.
|
|
# ADMIN_EMAILS="admin@example\.com|another-admin@example\.com"
|
|
# This is used for logging in via GitHub. You can leave these commented out if you don't want to use GitHub for authentication.
|
|
# AUTH_GITHUB_CLIENT_ID=
|
|
# AUTH_GITHUB_CLIENT_SECRET=
|
|
|
|
# Configure an email transport to allow users to sign in to Trigger.dev via a Magic Link.
|
|
# If none are configured, emails will print to the console instead.
|
|
# Uncomment one of the following blocks to allow delivery of
|
|
|
|
# Resend
|
|
### Visit https://resend.com, create an account and get your API key. Then insert it below along with your From and Reply To email addresses. Visit https://resend.com/docs for more information.
|
|
# EMAIL_TRANSPORT=resend
|
|
# FROM_EMAIL=
|
|
# REPLY_TO_EMAIL=
|
|
# RESEND_API_KEY=
|
|
|
|
# Generic SMTP
|
|
### Enter the configuration provided by your mail provider. Visit https://nodemailer.com/smtp/ for more information
|
|
### SMTP_SECURE = false will use STARTTLS when connecting to a server that supports it (usually port 587)
|
|
# EMAIL_TRANSPORT=smtp
|
|
# FROM_EMAIL=
|
|
# REPLY_TO_EMAIL=
|
|
# SMTP_HOST=
|
|
# SMTP_PORT=587
|
|
# SMTP_SECURE=false
|
|
# SMTP_USER=
|
|
# SMTP_PASSWORD=
|
|
|
|
# AWS Simple Email Service
|
|
### Authentication is configured using the default Node.JS credentials provider chain (https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-credential-providers/#fromnodeproviderchain)
|
|
# EMAIL_TRANSPORT=aws-ses
|
|
# FROM_EMAIL=
|
|
# REPLY_TO_EMAIL=
|
|
|
|
# Remove the following line to enable logging telemetry traces to the console
|
|
LOG_TELEMETRY="false"
|
|
|
|
# CLOUD VARIABLES
|
|
POSTHOG_PROJECT_KEY=
|
|
PLAIN_API_KEY=
|
|
CLOUD_AIRTABLE_CLIENT_ID=
|
|
CLOUD_AIRTABLE_CLIENT_SECRET=
|
|
CLOUD_GITHUB_CLIENT_ID=
|
|
CLOUD_GITHUB_CLIENT_SECRET=
|
|
CLOUD_LINEAR_CLIENT_ID=
|
|
CLOUD_LINEAR_CLIENT_SECRET=
|
|
CLOUD_SLACK_APP_HOST=
|
|
CLOUD_SLACK_CLIENT_ID=
|
|
CLOUD_SLACK_CLIENT_SECRET=
|
|
|
|
# v3 variables
|
|
PROVIDER_SECRET=provider-secret # generate the actual secret with `openssl rand -hex 32`
|
|
COORDINATOR_SECRET=coordinator-secret # generate the actual secret with `openssl rand -hex 32`
|
|
|
|
# Uncomment the following line to enable the registry proxy
|
|
# ENABLE_REGISTRY_PROXY=true
|
|
# DEPOT_TOKEN=<Depot org token>
|
|
# DEPOT_PROJECT_ID=<Depot project id>
|
|
# DEPLOY_REGISTRY_HOST=${APP_ORIGIN} # This is the host that the deploy CLI will use to push images to the registry
|
|
# CONTAINER_REGISTRY_ORIGIN=<Container registry origin e.g. https://registry.digitalocean.com>
|
|
# CONTAINER_REGISTRY_USERNAME=<Container registry username e.g. Digital ocean email address>
|
|
# CONTAINER_REGISTRY_PASSWORD=<Container registry password e.g. Digital ocean PAT>
|
|
# DEV_OTEL_EXPORTER_OTLP_ENDPOINT="http://0.0.0.0:4318"
|
|
# These are needed for the object store (for handling large payloads/outputs)
|
|
# OBJECT_STORE_BASE_URL="https://{bucket}.{accountId}.r2.cloudflarestorage.com"
|
|
# OBJECT_STORE_ACCESS_KEY_ID=
|
|
# OBJECT_STORE_SECRET_ACCESS_KEY=
|
|
# CHECKPOINT_THRESHOLD_IN_MS=10000
|
|
|
|
# These control the server-side internal telemetry
|
|
# INTERNAL_OTEL_TRACE_EXPORTER_URL=<URL to send traces to>
|
|
# INTERNAL_OTEL_TRACE_EXPORTER_AUTH_HEADER_NAME=<Header name for the auth token>
|
|
# INTERNAL_OTEL_TRACE_EXPORTER_AUTH_HEADER_VALUE=<Auth token value>
|
|
# INTERNAL_OTEL_TRACE_LOGGING_ENABLED=1
|
|
# INTERNAL_OTEL_TRACE_SAMPING_RATE=20 # this means 1/20 traces or 5% of traces will be sampled (sampled = recorded)
|
|
# INTERNAL_OTEL_TRACE_INSTRUMENT_PRISMA_ENABLED=0,
|