Commit a357dc42 authored by Mayel's avatar Mayel

Merge branch 'feature/transactional-email' into 'develop'

hopefully fix transactional email

See merge request moodlenet/servers/federated!16
parents 589cb055 56e20450
Pipeline #66804278 failed with stages
in 7 minutes and 29 seconds
<html>
<body>
<a href="<%= MoodleNetWeb.Endpoint.static_url() %>">
<img scr="<%= logo_url() %>" alt="MoodleNet">
</a>
<%= render @view_module, @view_template, assigns %>
</body>
</html>
MoodleNet
<%= render @view_module, @view_template, assigns %>
......@@ -6,24 +6,27 @@ 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(System.get_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, :frontend_base_url, env.("FRONTEND_BASE_URL")
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