Commit 66f6b3fd authored by James Laver's avatar James Laver

Make config/confix.exs not use Application.get_env

parent a50712b7
......@@ -30,8 +30,8 @@ config :mime, :types, %{
config :moodle_net, MoodleNet.Mailer,
adapter: Bamboo.MailgunAdapter, # replace this with the email deliver service adapter you want to use: https://github.com/thoughtbot/bamboo#available-adapters
api_key: Application.get_env(:moodle_net, :mail_key) || System.get_env("MAIL_KEY"), # use API key from runtime environment variable (make sure to set it on the server or CI config), and fallback to build-time env variable
domain: Application.get_env(:moodle_net, :mail_domain) || System.get_env("MAIL_DOMAIN"), # use sending domain from runtime env, and fallback to build-time env variable
api_key: System.get_env("MAIL_KEY"), # use API key from runtime environment variable (make sure to set it on the server or CI config), and fallback to build-time env variable
domain: System.get_env("MAIL_DOMAIN"), # use sending domain from runtime env, and fallback to build-time env variable
open_email_in_browser_url: "http://localhost:4000/sent_emails" # optional
version =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment