2019-10-05 17:07:50 +00:00
|
|
|
import Config
|
2017-12-08 08:58:14 +00:00
|
|
|
|
2020-01-26 20:36:50 +00:00
|
|
|
config :mobilizon, Mobilizon.Web.Endpoint,
|
2019-10-23 14:24:24 +00:00
|
|
|
http: [
|
2020-01-30 19:27:25 +00:00
|
|
|
port: 4000
|
2019-10-23 14:24:24 +00:00
|
|
|
],
|
2018-11-07 15:25:17 +00:00
|
|
|
url: [
|
2020-01-30 19:27:25 +00:00
|
|
|
host: "mobilizon.local",
|
|
|
|
scheme: "https",
|
|
|
|
port: 443
|
|
|
|
]
|
2018-07-04 12:29:17 +00:00
|
|
|
|
2017-12-08 08:58:14 +00:00
|
|
|
# Do not print debug messages in production
|
2020-01-30 19:27:25 +00:00
|
|
|
config :logger, level: :info
|
2017-12-08 08:58:14 +00:00
|
|
|
|
2020-01-30 19:27:25 +00:00
|
|
|
cond do
|
|
|
|
System.get_env("INSTANCE_CONFIG") &&
|
|
|
|
File.exists?("./config/#{System.get_env("INSTANCE_CONFIG")}") ->
|
|
|
|
import_config System.get_env("INSTANCE_CONFIG")
|
2019-03-12 10:52:28 +00:00
|
|
|
|
2020-01-30 19:27:25 +00:00
|
|
|
File.exists?("./config/dev.secret.exs") ->
|
|
|
|
import_config "dev.secret.exs"
|
2017-12-08 08:58:14 +00:00
|
|
|
|
2020-01-30 19:27:25 +00:00
|
|
|
true ->
|
|
|
|
require Logger
|
|
|
|
Logger.error("No configuration file found")
|
|
|
|
end
|