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-11-17 15:42:03 +01:00
|
|
|
# Load all locales in production
|
|
|
|
config :mobilizon, :cldr,
|
|
|
|
locales: [
|
|
|
|
"ar",
|
|
|
|
"be",
|
|
|
|
"ca",
|
|
|
|
"cs",
|
|
|
|
"de",
|
|
|
|
"en",
|
|
|
|
"es",
|
|
|
|
"fi",
|
|
|
|
"fr",
|
|
|
|
"gl",
|
|
|
|
"hu",
|
|
|
|
"it",
|
|
|
|
"ja",
|
|
|
|
"nl",
|
|
|
|
"nn",
|
|
|
|
"oc",
|
|
|
|
"pl",
|
|
|
|
"pt",
|
|
|
|
"ru",
|
|
|
|
"sv"
|
|
|
|
]
|
|
|
|
|
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-06-09 17:13:49 +02:00
|
|
|
File.exists?("./config/prod.secret.exs") ->
|
|
|
|
import_config "prod.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
|