You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Resend is an email service used for signing in to Trigger.dev via a Magic Link.
35
-
# Emails will print to the console if you leave these commented out
34
+
# Configure an email transport to allow users to sign in to Trigger.dev via a Magic Link.
35
+
# If none are configured, emails will print to the console instead.
36
+
# Uncomment one of the following blocks to allow delivery of
37
+
38
+
# Resend
36
39
### 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.
37
-
# RESEND_API_KEY=<api_key>
40
+
# EMAIL_TRANSPORT=resend
41
+
# FROM_EMAIL=
42
+
# REPLY_TO_EMAIL=
43
+
# RESEND_API_KEY=
44
+
45
+
# Generic SMTP
46
+
### Enter the configuration provided by your mail provider. Visit https://nodemailer.com/smtp/ for more information
47
+
### SMTP_SECURE = false will use STARTTLS when connecting to a server that supports it (usually port 587)
48
+
# EMAIL_TRANSPORT=smtp
49
+
# FROM_EMAIL=
50
+
# REPLY_TO_EMAIL=
51
+
# SMTP_HOST=
52
+
# SMTP_PORT=587
53
+
# SMTP_SECURE=false
54
+
# SMTP_USER=
55
+
# SMTP_PASSWORD=
56
+
57
+
# AWS Simple Email Service
58
+
### 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)
Copy file name to clipboardExpand all lines: docs/open-source-self-hosting.mdx
+39-1Lines changed: 39 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -269,7 +269,45 @@ TRIGGER_IMAGE_TAG=v3.0.4
269
269
270
270
### Auth options
271
271
272
-
By default, magic link auth is the only login option. If the `RESEND_API_KEY` env var is not set, the magic links will be logged by the webapp container and not sent via email.
272
+
By default, magic link auth is the only login option. If the `EMAIL_TRANSPORT` env var is not set, the magic links will be logged by the webapp container and not sent via email.
273
+
274
+
Depending on your choice of mail provider/transport, you will want to configure a set of variables like one of the following:
275
+
276
+
##### Resend:
277
+
```bash
278
+
EMAIL_TRANSPORT=resend
279
+
FROM_EMAIL=
280
+
REPLY_TO_EMAIL=
281
+
RESEND_API_KEY=<your_resend_api_key>
282
+
```
283
+
284
+
##### SMTP
285
+
286
+
Note that setting `SMTP_SECURE=false` does _not_ mean the email is sent insecurely.
287
+
This simply means that the connection is secured using the modern STARTTLS protocol command instead of implicit TLS.
288
+
You should only set this to true when the SMTP server host directs you to do so (generally when using port 465)
289
+
290
+
```bash
291
+
EMAIL_TRANSPORT=smtp
292
+
FROM_EMAIL=
293
+
REPLY_TO_EMAIL=
294
+
SMTP_HOST=<your_smtp_server>
295
+
SMTP_PORT=587
296
+
SMTP_SECURE=false
297
+
SMTP_USER=<your_smtp_username>
298
+
SMTP_PASSWORD=<your_smtp_password>
299
+
```
300
+
301
+
##### AWS Simple Email Service
302
+
303
+
Credentials are to be supplied as with any other program using the AWS SDK.
304
+
In this scenario, you would likely either supply the additional environment variables `AWS_REGION`, `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` or, when running on AWS, use credentials supplied by the EC2 IMDS.
305
+
306
+
```bash
307
+
EMAIL_TRANSPORT=aws-ses
308
+
FROM_EMAIL=
309
+
REPLY_TO_EMAIL=
310
+
```
273
311
274
312
All email addresses can sign up and log in this way. If you would like to restrict this, you can use the `WHITELISTED_EMAILS` env var. For example:
0 commit comments