Commit b3672b90 authored by James Laver's avatar James Laver

Require envvar: FRONTEND_BASE_URL

parent e11b470a
Pipeline #66722659 passed with stages
in 7 minutes and 17 seconds
......@@ -82,4 +82,7 @@ config :moodle_net, MoodleNet.Repo,
hostname: System.get_env("DATABASE_HOST") || "localhost",
pool_size: 10
config :moodle_net, :ap_base_url, "http://dev.localhost:4000/activity_pub"
config :moodle_net, :ap_base_url,
(System.get_env("AP_BASE_URL") || "http://dev.localhost:4000/activity_pub")
config :moodle_net, :frontend_base_url,
(System.get_env("FRONTEND_BASE_URL") || "http:/localhost:3000/")
......@@ -10,6 +10,7 @@ LANG=en_US.UTF-8
REPLACE_OS_VARS=true
ERLANG_COOKIE=moodle_net_cookie
AP_BASE_URL=http://localhost:4000/activity_pub
FRONTEND_BASE_URL=http://localhost:3000/
MAIL_DOMAIN=mailg.moodle.net
MAIL_KEY=123
APPSIGNAL_BUILD_FOR_MUSL=1
......@@ -10,5 +10,6 @@ LANG=en_US.UTF-8
REPLACE_OS_VARS=true
ERLANG_COOKIE=moodle_net_cookie
AP_BASE_URL=http://localhost:4000/activity_pub
FRONTEND_BASE_URL=http://localhost:1234/
MAIL_DOMAIN=mailg.moodle.net
MAIL_KEY=123
\ No newline at end of file
......@@ -14,7 +14,7 @@ config :moodle_net, MoodleNet.Repo,
hostname: env.("DATABASE_HOST"),
pool_size: 15
port = String.to_integer(env.("PORT") || "8080")
port = String.to_integer(System.get_env("PORT") || "8080")
config :moodle_net, MoodleNetWeb.Endpoint,
http: [port: port],
url: [host: env.("HOSTNAME"), port: port],
......@@ -22,6 +22,7 @@ config :moodle_net, MoodleNetWeb.Endpoint,
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"),
......
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