Skip to content

Commit f057263

Browse files
committed
fix: entries for compile-time config vars
1 parent c277207 commit f057263

File tree

4 files changed

+8
-12
lines changed

4 files changed

+8
-12
lines changed

config/config.exs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,6 @@ config :elixir, :time_zone_database, Tzdata.TimeZoneDatabase
160160

161161
config :reverse_proxy_plug, :http_client, ReverseProxyPlug.HTTPClient.Adapters.HTTPoison
162162

163-
config :algora, :ingest_url, System.get_env("INGEST_URL")
164-
config :algora, :assets_url, System.get_env("ASSETS_URL")
165-
166163
# Import environment specific config. This must remain at the bottom
167164
# of this file so it overrides the configuration defined above.
168165
import_config "#{config_env()}.exs"

config/dev.exs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,7 @@ config :algora, :login_code,
138138
ttl: String.to_integer(System.get_env("LOGIN_CODE_TTL", "3600")),
139139
salt: System.get_env("LOGIN_CODE_SALT", "algora-login-code")
140140

141-
config :algora, :plausible_url, System.get_env("PLAUSIBLE_URL")
142-
143-
config :algora, :assets_url, System.get_env("ASSETS_URL")
144-
145-
config :algora, :ingest_url, System.get_env("INGEST_URL")
141+
config :algora,
142+
plausible_url: System.get_env("PLAUSIBLE_URL"),
143+
assets_url: System.get_env("ASSETS_URL"),
144+
ingest_url: System.get_env("INGEST_URL")

config/prod.exs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ config :algora,
2727
dev_routes: true,
2828
require_admin_for_mailbox: true
2929

30-
config :algora, :assets_url, System.get_env("ASSETS_URL")
31-
config :algora, :ingest_url, System.get_env("INGEST_URL")
30+
config :algora,
31+
plausible_url: System.get_env("PLAUSIBLE_URL"),
32+
assets_url: System.get_env("ASSETS_URL"),
33+
ingest_url: System.get_env("INGEST_URL")
3234

3335
# Runtime production configuration, including reading
3436
# of environment variables, is done on config/runtime.exs.

config/runtime.exs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,4 @@ if config_env() == :prod do
148148
config :algora, :login_code,
149149
ttl: String.to_integer(System.get_env("LOGIN_CODE_TTL", "3600")),
150150
salt: System.fetch_env!("LOGIN_CODE_SALT")
151-
152-
config :algora, :plausible_url, System.get_env("PLAUSIBLE_URL")
153151
end

0 commit comments

Comments
 (0)