Skip to content

updated the readme.md to reflect current SMTP support changes #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ And then you can copy out the AUTH_GITHUB_CLIENT_ID and AUTH_GITHUB_CLIENT_SECRE

![github copy secrets](assets/github-secrets.png)

#### RESEND_API_KEY and FROM_EMAIL, REPLY_TO_EMAIL (required)
#### FROM_EMAIL,REPLY_TO_EMAIL, SMTP_HOST, SMTP_PORT, SMTP_USER and SMTP_PASSWORD (required)

We use [Resend.com](https://resend.com) for email sending (including the magic-link signup/login system). They have a generous free tier of 100 emails a day that should be sufficient. Signup for Resend.com and enter the required environment vars below
We use SMTP for email sending (including the magic-link signup/login system).

#### MAGIC_LINK_SECRET, SESSION_SECRET and ENCRYPTION_KEY (required)

Expand All @@ -79,7 +79,7 @@ Connection string: postgres://postgres:<PASSWORD>@<fly db name>.flycast:5432

Both of these secrets should be set to the base URL of your fly application. For example `https://trigger-v2-fly-demo.fly.dev`

### Set the secrets
## Set the secrets

Call the `fly secrets set` command to stage the secrets to be used on first deploy:

Expand All @@ -90,10 +90,12 @@ fly secrets set \
SESSION_SECRET=<random string> \
LOGIN_ORIGIN="https://<fly app name>.fly.dev" \
APP_ORIGIN="https://<fly app name>.fly.dev" \
DIRECT_URL="postgres://postgres:<PASSWORD>@<fly db name>.flycast:5432" \
FROM_EMAIL="Acme Inc. <[email protected]>" \
REPLY_TO_EMAIL="Acme Inc. <[email protected]>" \
RESEND_API_KEY=<your API Key> \
SMTP_HOST= < your SMTP host > \
SMTP_PORT= < your SMTP port > \
SMTP_USER= < your SMTP user > \
SMTP_PASSWORD= < your SMTP password > \
AUTH_GITHUB_CLIENT_ID=<your GitHub OAuth Client ID> \
AUTH_GITHUB_CLIENT_SECRET=<your GitHUb OAuth Client Secret>

Expand Down