Start with the example configuration file.
Replace localhost
with your XMPP domain.
Specify the server’s public turn_ipv4_address
.
certfiles
readable by the user running ejabberd.
Make at least the following ports accessible on the server’s public IP address:
Optionally create the following SRV records for XMPP(S) in DNS:
_xmpps-client._tcp.example.com. 86400 IN SRV 2 0 5223 server.example.com.
_xmpp-client._tcp.example.com. 86400 IN SRV 5 0 5222 server.example.com.
_xmpp-server._tcp.example.com. 86400 IN SRV 5 0 5269 server.example.com.
Optionally check your setup with the compliance tester.