Skip to content

Commit

Permalink
Add mailgun url configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Lekuruu committed Dec 25, 2023
1 parent 159afe1 commit 66cd4c5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ def reload_config(ctx: Context) -> List[str]:

config.MAILGUN_API_KEY = os.environ.get('MAILGUN_API_KEY')
config.MAILGUN_EMAIL = os.environ.get('MAILGUN_EMAIL')
config.MAILGUN_URL = os.environ.get('MAILGUN_URL', 'api.eu.mailgun.net')
config.MAILGUN_DOMAIN = config.MAILGUN_EMAIL.split('@')[-1]

config.EMAILS_ENABLED = config.MAILGUN_API_KEY is not None or config.SENDGRID_API_KEY is not None
Expand Down
2 changes: 1 addition & 1 deletion app/common
Submodule common updated 1 files
+18 −6 mail.py
1 change: 1 addition & 0 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@

MAILGUN_API_KEY = os.environ.get('MAILGUN_API_KEY')
MAILGUN_EMAIL = os.environ.get('MAILGUN_EMAIL')
MAILGUN_URL = os.environ.get('MAILGUN_URL', 'api.eu.mailgun.net')
MAILGUN_DOMAIN = MAILGUN_EMAIL.split('@')[-1]

EMAILS_ENABLED = MAILGUN_API_KEY is not None or SENDGRID_API_KEY is not None
Expand Down

0 comments on commit 66cd4c5

Please sign in to comment.