From 457f0f3a4953081900730d94b89fbc79e6ec8199 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sun, 3 Apr 2022 22:27:22 -0400 Subject: ejabberd/prosody changes --- ejabberd.html | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'ejabberd.html') diff --git a/ejabberd.html b/ejabberd.html index b758e77..910db7b 100644 --- a/ejabberd.html +++ b/ejabberd.html @@ -1,7 +1,7 @@ - XMPP Server (ejabberd) – LandChad.net + ejabberd (an XMPP Server) – LandChad.net @@ -9,14 +9,14 @@ -

XMPP Server (ejabberd)

+

ejabberd (an XMPP Server)

XMPP logo and icon

- Ejabberd is a server for the XMPP protocol written in Erlang. + Ejabberd is a server for the XMPP protocol written in Erlang. It's easier to configure and setup than Prosody due to having most of its modules built-in and pre-configured by default.

@@ -25,7 +25,7 @@

Ejabberd presumes that you have already created all the required and optional subdomains for its operation prior to running it.

- +

Depending on the usecase, you may need any or all of the following domains for XMPP functionality:

- +

This guide will assume all these subdomains have been created.

Installation

Ejabberd is available in the Debian repositories:

apt install ejabberd
- +

Configuration

The ejabberd server is configured in /etc/ejabberd/ejabberd.yml. Changes are only applied by restarting the ejabberd daemon in systemd:

systemctl restart ejabberd
@@ -53,7 +53,7 @@

Certificates

Unlike Prosody, ejabberd doesn't come equipped with a script that can automatically copy over the relevant certificates to a directory where the ejabberd user can read them.

- +

One way of organizing certificates for ejabberd is to have them stored in /etc/ejabberd/certs, with each domain having a separate directory for both the fullchain cert and private key.

Using certbot, this process can be easily automated with this one-liner:

@@ -76,9 +76,9 @@ certbot --nginx -d $DOMAIN certonly; mkdir /etc/ejabberd/certs/$DOMAIN; cp /etc/ user: admin

This would make admin@example.org the user with administrator privileges.

- +

Message Archives

- +

The ejabberd server supports keeping archives of messages through its mod_mam module. This can be enabled by uncommenting the following lines:

mod_mam:
@@ -124,7 +124,7 @@ certbot --nginx -d $DOMAIN certonly; mkdir /etc/ejabberd/certs/$DOMAIN; cp /etc/
 
 	

Configuring ejabberd to use PostgreSQL

Finally, add the following configuration to ejabberd.yml:

- +
sql_type: pgsql
 sql_server: "localhost"
 sql_database: "ejabberd"
@@ -142,7 +142,7 @@ sql_password: "psql_password"

To begin using ejabberd, firstly start the ejabberd daemon:

systemctl restart ejabberd
- +

Then, using ejabberdctl as the ejabberd user, register the admin user which is set in ejabberd.yml:

su -c "ejabberdctl register admin example.org password" ejabberd
-- cgit v1.2.3