Skip to content

Commit

Permalink
fix: #489 Fix missing envs in the emails, adjust env docs (#490)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkleszcz authored Mar 1, 2024
1 parent 224d936 commit 6d5c784
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
| VITE_BASE_API_URL | Path to access backend API | `/api` |
| VITE_WEB_APP_URL | Absolute URL to application | `https://app.demo.saas.apptoku.com` |
| VITE_SUBSCRIPTIONS_URL | Websockets subscription URL | `wss://app.demo.saas.apptoku.com/ws` |
| VITE_EMAIL_ASSETS_URL | Absolute URL to email assets. By default it's `${VITE_WEB_APP_URL}/email-assets` | `https://app.demo.saas.apptoku.com/email-assets` |

import OptionalVars from './_webapp_optional.mdx';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
**Required** variables:

| Name | Description | Example |
|-------------|-------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------|
| FROM_EMAIL | Email used in `From` email field | `[email protected]` |
| HASHID_SALT | [docs](https://github.com/nshafer/django-hashid-field#hashid_field_salt) | `t5$^r\*xsMRXn1xjzhRSl8I5Hb3BUW$4U` |
| JWT_SECRET | Secret used to decode JWT used in subscriptions. The value needs to be the same as `DJANGO_SECRET_KEY` backend environment variable | |
| WEB_APP_URL | | `https://app.demo.saas.apptoku.com` |
| Name | Description | Example |
|------------------|-------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------|
| FROM_EMAIL | Email used in `From` email field | `[email protected]` |
| HASHID_SALT | [docs](https://github.com/nshafer/django-hashid-field#hashid_field_salt) | `t5$^r\*xsMRXn1xjzhRSl8I5Hb3BUW$4U` |
| JWT_SECRET | Secret used to decode JWT used in subscriptions. The value needs to be the same as `DJANGO_SECRET_KEY` backend environment variable | |
| WEB_APP_URL | | `https://app.demo.saas.apptoku.com` |
| EMAIL_ASSETS_URL | Absolute URL to email assets. By default it's `${WEB_APP_URL}/email-assets` | `https://app.demo.saas.apptoku.com/email-assets` |

import OptionalVars from './_workers_optional.mdx';

Expand Down
2 changes: 2 additions & 0 deletions packages/workers/workers.conf.local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ SendEmail:
AWS_ENDPOINT_URL: "http://localstack:4566"
FROM_EMAIL: "[email protected]"
WEB_APP_URL: "http://localhost:3000"
VITE_EMAIL_ASSETS_URL: "http://localhost:3000/email-assets"
VITE_WEB_APP_URL: "http://localhost:3000"

SynchronizeContentfulContent:
environment:
Expand Down
2 changes: 2 additions & 0 deletions packages/workers/workers.conf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ SendEmail:
environment:
FROM_EMAIL: ${ssm:/${self:custom.ssmService}/FROM_EMAIL}
WEB_APP_URL: ${ssm:/${self:custom.ssmService}/WEB_APP_URL}
VITE_WEB_APP_URL: ${ssm:/${self:custom.ssmService}/WEB_APP_URL}
VITE_EMAIL_ASSETS_URL: ${ssm:/${self:custom.ssmService}/EMAIL_ASSETS_URL}

SynchronizeContentfulContent:
environment:
Expand Down

0 comments on commit 6d5c784

Please sign in to comment.