deploy: add elastic email
This commit is contained in:
parent
6172e477b1
commit
7ba1305c88
2 changed files with 11 additions and 0 deletions
|
@ -122,4 +122,13 @@ if config_env() == :prod do
|
|||
# config :swoosh, :api_client, Swoosh.ApiClient.Hackney
|
||||
#
|
||||
# See https://hexdocs.pm/swoosh/Swoosh.html#module-installation for details.
|
||||
config :your_app, YourApp.Mailer,
|
||||
adapter: Swoosh.Adapters.SMTP,
|
||||
relay: "smtp.elasticemail.com",
|
||||
port: 2525,
|
||||
username: System.get_env("ELASTIC_EMAIL_USERNAME"),
|
||||
password: System.get_env("ELASTIC_EMAIL_PASSWORD"),
|
||||
ssl: false,
|
||||
tls: :always,
|
||||
auth: :always
|
||||
end
|
||||
|
|
|
@ -9,6 +9,8 @@ services:
|
|||
- DATABASE_URL=${DATABASE_URL}
|
||||
- SECRET_KEY_BASE=${SECRET_KEY_BASE}
|
||||
- EXMR_ENABLE_REGISTRATION=true
|
||||
- ELASTIC_EMAIL_USERNAME=${ELASTIC_EMAIL_USERNAME}
|
||||
- ELASTIC_EMAIL_PASSWORD=${ELASTIC_EMAIL_PASSWORD}
|
||||
depends_on:
|
||||
- db
|
||||
|
||||
|
|
Loading…
Reference in a new issue