2021-07-15 20:52:50 +02:00
|
|
|
import Config
|
|
|
|
|
2022-04-25 12:46:48 +02:00
|
|
|
rootdefault = case System.get_env("RELIVE", "false") do
|
|
|
|
"true" -> "_build/relive"
|
|
|
|
"false" -> ""
|
2022-01-17 11:49:16 +01:00
|
|
|
end
|
2022-04-25 12:46:48 +02:00
|
|
|
|
|
|
|
rootpath = System.get_env("RELEASE_ROOT", rootdefault)
|
|
|
|
config :ejabberd,
|
|
|
|
file: Path.join(rootpath, "conf/ejabberd.yml"),
|
2023-12-13 22:20:45 +01:00
|
|
|
log_path: Path.join(rootpath, "logs/ejabberd.log")
|
2022-04-25 12:46:48 +02:00
|
|
|
config :mnesia,
|
2023-12-13 22:20:45 +01:00
|
|
|
dir: Path.join(rootpath, "database/")
|
2024-04-23 16:47:50 +02:00
|
|
|
config :exsync,
|
|
|
|
reload_callback: {:ejabberd_admin, :update, []}
|