Commit 6c47223e authored by Mayel's avatar Mayel

fix transactional email

parent a50712b7
Pipeline #65682046 passed with stages
in 5 minutes and 23 seconds
......@@ -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 =
......
......@@ -6,22 +6,23 @@ env = fn name ->
other -> other
end
end
config :moodle_net, MoodleNet.Repo,
username: env.("DATABASE_USER"),
password: env.("DATABASE_PASS"),
database: env.("DATABASE_NAME"),
hostname: env.("DATABASE_HOST"),
pool_size: 15
port = String.to_integer(env.("PORT") || "8080")
config :moodle_net, MoodleNetWeb.Endpoint,
http: [port: port],
url: [host: env.("HOSTNAME"), port: port],
root: ".",
secret_key_base: env.("SECRET_KEY_BASE")
config :moodle_net, :ap_base_url, env.("AP_BASE_URL")
config :moodle_net, :mail_domain, env.("MAIL_DOMAIN")
config :moodle_net, :mail_key, env.("MAIL_KEY")
config :moodle_net, MoodleNet.Mailer,
domain: env.("MAIL_DOMAIN"),
api_key: env.("MAIL_KEY")
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