aboutsummaryrefslogtreecommitdiff
path: root/config/runtime.exs
blob: 050eae8b028d2f9d51e1aa1b53f4c23d795ddabe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
import Config

rootpath = System.get_env("RELEASE_ROOT", "")

# This is standard path in the context of ejabberd release
config :ejabberd,
  file: Path.join(rootpath, "etc/ejabberd/ejabberd.yml"),
  log_path: Path.join(rootpath, 'var/log/ejabberd/ejabberd.log')

# Customize Mnesia directory:
config :mnesia,
  dir: Path.join(rootpath, 'var/lib/ejabberd/')