diff options
author | Matthew Lemon <y@yulqen.org> | 2024-12-08 17:37:55 +0000 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-12-08 17:37:55 +0000 |
commit | f8095c75f880a099fb8f08e05a359755458ef79a (patch) | |
tree | 1a8bac72e594bba899385e5bf1d283207730aa0e /config | |
parent | bc557f9ea2ec520533d0e697dbab8ae1539195c4 (diff) |
Uses Mailgun for production and local settings
- credentials are in the .env file
- uses the mailgun http API to send verification messages
Diffstat (limited to 'config')
-rw-r--r-- | config/settings/base.py | 3 | ||||
-rw-r--r-- | config/settings/production.py | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/config/settings/base.py b/config/settings/base.py index 28e40ed..9c6183c 100644 --- a/config/settings/base.py +++ b/config/settings/base.py @@ -356,3 +356,6 @@ AWS_S3_ENDPOINT_URL = env("SPACES_ENDPOINT_URL") # Your stuff... # ------------------------------------------------------------------------------ +MAILGUN_API_KEY = env("MAILGUN_API_KEY") +MAILGUN_SENDER_DOMAIN = env("MAILGUN_SENDER_DOMAIN") +MAILGUN_API_URL = env("MAILGUN_API_URL", default="https://api.eu.mailgun.net/v3") diff --git a/config/settings/production.py b/config/settings/production.py index f8e48ac..cfd7d78 100644 --- a/config/settings/production.py +++ b/config/settings/production.py @@ -226,4 +226,7 @@ LOGGING = { # Your stuff... -# ------------------------------------------------------------------------------ +# My manual Mailgun stuff +MAILGUN_API_KEY = env("MAILGUN_API_KEY") +MAILGUN_SENDER_DOMAIN = env("MAILGUN_DOMAIN") +MAILGUN_API_URL = env("MAILGUN_API_URL", default="https://api.eu.mailgun.net/v3") |