Configured for release on prod environment.

This commit is contained in:
2026-02-21 11:55:23 +01:00
parent 0b364f19c2
commit 41e32e3ff1
6 changed files with 27 additions and 5 deletions

View File

@ -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