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