Skip to content

Commit

Permalink
Merge pull request #60 from kartoza/fix/resend-settings
Browse files Browse the repository at this point in the history
Update prod settings for resend
  • Loading branch information
danangmassandy authored Aug 23, 2024
2 parents f5ee771 + 7c9d8ee commit da233cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions deployment/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ x-common-variables: &common-variables
MINIO_BROWSER_REDIRECT_URL: ${MINIO_BROWSER_REDIRECT_URL}
DEFAULT_FROM_EMAIL: ${DEFAULT_FROM_EMAIL}
RESEND_API_KEY: ${RESEND_API_KEY}
EMAIL_BACKEND: ${EMAIL_BACKEND}


x-common-django:
Expand Down
4 changes: 3 additions & 1 deletion django_project/core/settings/prod.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
# ---------- EMAIL ------------ #
# -------------------------------------------------- #
# See fig.yml file for postfix container definition#
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_BACKEND = os.environ.get(
'EMAIL_BACKEND', 'django.core.mail.backends.smtp.EmailBackend'
)
# Host for sending e-mail.
EMAIL_HOST = os.environ.get('EMAIL_HOST', 'smtp')
# Port for sending e-mail.
Expand Down

0 comments on commit da233cd

Please sign in to comment.