1
0
Fork 0
mirror of https://framagit.org/framasoft/mobilizon.git synced 2024-12-26 01:38:36 +00:00
mobilizon/config/prod.exs

28 lines
573 B
Elixir
Raw Normal View History

import Config
2020-01-26 20:36:50 +00:00
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/dev.secret.exs") ->
import_config "dev.secret.exs"
true ->
require Logger
Logger.error("No configuration file found")
end