summaryrefslogtreecommitdiff
path: root/ejabberdctl.cfg.example
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2022-05-26 18:35:14 +0200
committerBadlop <badlop@process-one.net>2022-09-13 17:55:15 +0200
commit30f1e284681db482ef78da6d865ccc79120e4ca3 (patch)
tree3d80e5c3a8d559dab5c167fb48acf5f40f3385a5 /ejabberdctl.cfg.example
parentIgnore .ejabberd-modules/ , may be used when building container (diff)
Support ERL_DIST_PORT option to work without epmd
Please note: - Erlang/OTP 23.1 or higher is required to use ERL_DIST_PORT - "make relive" doesn't support ERL_DIST_PORT, neither rebar3 nor elixir - "make install" doesn't work with Elixir since at least ejabberd 21.07 Reference: https://www.erlang.org/blog/otp-23-highlights/ https://blog.erlware.org/epmdlessless/
Diffstat (limited to 'ejabberdctl.cfg.example')
-rw-r--r--ejabberdctl.cfg.example22
1 files changed, 20 insertions, 2 deletions
diff --git a/ejabberdctl.cfg.example b/ejabberdctl.cfg.example
index 2300378e..8b15933d 100644
--- a/ejabberdctl.cfg.example
+++ b/ejabberdctl.cfg.example
@@ -47,10 +47,28 @@
#INET_DIST_INTERFACE=127.0.0.1
#.
-#' ERL_EPMD_ADDRESS: IP addresses where epmd listens for connections
+#' ERL_DIST_PORT: Port number for Erlang distribution
+#
+# For Erlang distribution, clustering and ejabberdctl usage, the
+# Erlang VM listens in a random TCP port number, and the Erlang Port
+# Mapper Daemon (EPMD) is spawned and used to determine this port
+# number.
+#
+# ERL_DIST_PORT can define this port number. In that case, EPMD is
+# not spawned during ejabberd startup, and ERL_EPMD_ADDRESS is
+# ignored. ERL_DIST_PORT must be set to the same port number during
+# ejabberd startup and when calling ejabberdctl. This feature
+# requires at least Erlang/OTP 23.1.
+#
+# Default: not defined
+#
+#ERL_DIST_PORT=5210
+
+#.
+#' ERL_EPMD_ADDRESS: IP addresses where EPMD listens for connections
#
# This environment variable may be set to a comma-separated
-# list of IP addresses, in which case the epmd daemon
+# list of IP addresses, in which case the EPMD daemon
# will listen only on the specified address(es) and on the
# loopback address (which is implicitly added to the list if it
# has not been specified). The default behaviour is to listen on