summaryrefslogtreecommitdiff
path: root/config/runtime.exs
diff options
context:
space:
mode:
authorLogan Hunt <loganhunt@simponic.xyz>2022-04-21 18:54:26 -0600
committerLogan Hunt <loganhunt@simponic.xyz>2022-04-21 18:54:26 -0600
commitc9a6abf9b7f67dd1bdf465de02fe17e859914464 (patch)
tree210f2099f9e644c34206af3d494e4dfd075f4b17 /config/runtime.exs
parentf6b262ea668bfaef48be40efb809e791258e2417 (diff)
downloadaggiedit-c9a6abf9b7f67dd1bdf465de02fe17e859914464.tar.gz
aggiedit-c9a6abf9b7f67dd1bdf465de02fe17e859914464.zip
Get ready for deployment
Diffstat (limited to 'config/runtime.exs')
-rw-r--r--config/runtime.exs10
1 files changed, 10 insertions, 0 deletions
diff --git a/config/runtime.exs b/config/runtime.exs
index 50fa43f..84b1f03 100644
--- a/config/runtime.exs
+++ b/config/runtime.exs
@@ -32,6 +32,16 @@ if config_env() == :prod do
pool_size: String.to_integer(System.get_env("POOL_SIZE") || "10"),
socket_options: maybe_ipv6
+ config :aggiedit, Aggiedit.Mailer,
+ adapter: Swoosh.Adapters.SMTP,
+ relay: System.get_env("SMTP_SERVER"),
+ port: 587,
+ username: System.get_env("CONTACT_EMAIL"),
+ password: System.get_env("EMAIL_PASSWORD"),
+ tls: :always,
+ auth: :always,
+ no_mx_lookups: true
+
# The secret key base is used to sign/encrypt cookies and other secrets.
# A default value is used in config/dev.exs and config/test.exs but you
# want to use a different value for prod and you most likely don't want