forked from shibao/cannery
fix runtime config
This commit is contained in:
parent
f155a43ee8
commit
6dbadc58ae
@ -75,7 +75,7 @@ if config_env() == :prod do
|
|||||||
config :lokal, Lokal.Mailer,
|
config :lokal, Lokal.Mailer,
|
||||||
adapter: Swoosh.Adapters.SMTP,
|
adapter: Swoosh.Adapters.SMTP,
|
||||||
relay: System.get_env("SMTP_HOST") || raise("No SMTP_HOST set!"),
|
relay: System.get_env("SMTP_HOST") || raise("No SMTP_HOST set!"),
|
||||||
port: System.get_env("SMTP_PORT", 587),
|
port: System.get_env("SMTP_PORT", "587"),
|
||||||
username: System.get_env("SMTP_USERNAME") || raise("No SMTP_USERNAME set!"),
|
username: System.get_env("SMTP_USERNAME") || raise("No SMTP_USERNAME set!"),
|
||||||
password: System.get_env("SMTP_PASSWORD") || raise("No SMTP_PASSWORD set!"),
|
password: System.get_env("SMTP_PASSWORD") || raise("No SMTP_PASSWORD set!"),
|
||||||
ssl: System.get_env("SMTP_SSL") == "true",
|
ssl: System.get_env("SMTP_SSL") == "true",
|
||||||
|
Loading…
Reference in New Issue
Block a user