mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-23 08:22:50 +00:00
a0eb880f6a
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
27 lines
575 B
Elixir
27 lines
575 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
|
|
|
|
cond do
|
|
System.get_env("INSTANCE_CONFIG") &&
|
|
File.exists?("./config/#{System.get_env("INSTANCE_CONFIG")}") ->
|
|
import_config System.get_env("INSTANCE_CONFIG")
|
|
|
|
File.exists?("./config/prod.secret.exs") ->
|
|
import_config "prod.secret.exs"
|
|
|
|
true ->
|
|
require Logger
|
|
Logger.error("No configuration file found")
|
|
end
|