forked from potsda.mn/mobilizon
0792bf5445
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
53 lines
824 B
Elixir
53 lines
824 B
Elixir
import Config
|
|
|
|
config :mobilizon, Mobilizon.Web.Endpoint,
|
|
http: [
|
|
port: 4000
|
|
],
|
|
url: [
|
|
host: "mobilizon.local",
|
|
scheme: "https",
|
|
port: 443
|
|
]
|
|
|
|
# Do not print debug messages in production
|
|
config :logger, level: :info
|
|
|
|
# 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"
|
|
]
|
|
|
|
config :tzdata, :data_dir, "/var/lib/mobilizon/tzdata"
|
|
|
|
config :tz_world, data_dir: "/var/lib/mobilizon/tz_world"
|
|
|
|
cond do
|
|
System.get_env("INSTANCE_CONFIG") &&
|
|
File.exists?("./config/#{System.get_env("INSTANCE_CONFIG")}") ->
|
|
import_config System.get_env("INSTANCE_CONFIG")
|
|
|
|
true ->
|
|
:ok
|
|
end
|