Configured for release on prod environment.
This commit is contained in:
@ -116,4 +116,20 @@ if config_env() == :prod do
|
||||
# config :swoosh, :api_client, Swoosh.ApiClient.Req
|
||||
#
|
||||
# See https://hexdocs.pm/swoosh/Swoosh.html#module-installation for details.
|
||||
mail_relay = System.get_env("MAIL_RELAY") || "example.com"
|
||||
mail_address = System.get_env("MAIL_ADDRESS") || "info@example.com"
|
||||
mail_pw = System.get_env("MAIL_PW") || ""
|
||||
|
||||
config :beet_round_server, BeetRoundServer.Mailer,
|
||||
adapter: Swoosh.Adapters.SMTP,
|
||||
relay: mail_relay,
|
||||
username: mail_address,
|
||||
password: mail_pw,
|
||||
ssl: false,
|
||||
ssl_opts: [verify: :verify_none],
|
||||
tls_options: [verify: :verify_none],
|
||||
tls: :always,
|
||||
auth: :always,
|
||||
port: 587,
|
||||
retries: 2
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user