move more fully to runtime config with release, improved docker build, updated phx liveview js

This commit is contained in:
Adam Piontek 2023-01-28 08:14:32 -05:00
parent db9f127e7b
commit 573a1e9cfe
38 changed files with 428 additions and 205 deletions

View file

@ -12,13 +12,6 @@ config :elixir, :time_zone_database, Tzdata.TimeZoneDatabase
config :shift73k,
ecto_repos: [Shift73k.Repo]
# Custom application global variables
config :shift73k, :app_global_vars,
time_zone: "America/New_York",
mailer_reply_to: "reply_to@example.com",
mailer_from: "app_name@example.com",
allow_registration: :true
# Configures the endpoint
config :shift73k, Shift73kWeb.Endpoint,
url: [host: "localhost"],

View file

@ -123,7 +123,11 @@ config :shift73k, Shift73k.Mailer,
no_mx_lookups: false
config :shift73k, :app_global_vars,
mailer_reply_to: System.get_env("APP_REPLY_TO"),
mailer_from: {System.get_env("MAIL_FROM_FRIENDLY"), System.get_env("MAIL_FROM_ADDR")},
allow_registration: System.get_env("ALLOW_REG")
time_zone: System.get_env("TZ") || "America/New_York",
mailer_reply_to: System.get_env("MAIL_REPLY_TO") || "reply_to@example.com",
mailer_from: {
System.get_env("MAIL_FROM_FRIENDLY") || "Shift73k",
System.get_env("MAIL_FROM_ADDR") || "app_name@example.com"
},
allow_registration: System.get_env("ALLOW_REG") || :true
end