From 420b864dcf3dfabfd0b97badacaa6c118dc36087 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Wed, 21 Jul 2021 14:38:59 -0400 Subject: xmpp prosody almost done, needs testing --- xmpp.html | 33 +++++++++++---------------------- 1 file changed, 11 insertions(+), 22 deletions(-) (limited to 'xmpp.html') diff --git a/xmpp.html b/xmpp.html index f548948..a7affaf 100644 --- a/xmpp.html +++ b/xmpp.html @@ -49,10 +49,10 @@ Find the line that says admins = { } and to this we can specify one

# To add one admin:
-admins = { "chad@landchad.net" }
+admins = { "chad@example.org" }
 
 # We can add more than one by separating them by commas. (This file is written in Lua.)
-admins = { "chad@landchad.net", "chadmin@landchad.net" }
+admins = { "chad@example.org", "chadmin@example.org" }

Note that we have not created these accounts yet, we will do this below. @@ -62,7 +62,7 @@ Note that we have not created these accounts yet, we will do this

Find the line VirtualHost "localhost" and replace localhost with your domain. -In our case, we will have VirtualHost "landchad.net" +In our case, we will have VirtualHost "example.org"

Multi-User Chats

@@ -73,7 +73,8 @@ This is easily enough to enable. In the config file, add the following:

-
Component "chat.landchad.xyz" "muc"
+
Component "chat.example.org" "muc"
+    modules_enabled = { "muc_mam" }
     restrict_room_creation = "admin"

@@ -105,7 +106,7 @@ Find the array beginning with modules_enabled. This includes a list of modules to be used. Add "omemo_all_access"; to that list. -

+Additionally, be sure to change the module pep to pep_simple or this will cause a conflict.

This module is not installed by default, @@ -113,7 +114,7 @@ but you can easily download it by running the following command on the command p to download and install the module to the correct directory.

-
curl -sL https://hg.prosody.im/prosody-modules/raw-file/785389a2d2b3/mod_omemo_all_access/mod_omemo_all_access.lua > /usr/lib/prosody/modules/mod_omemo_all_access.lua
+
curl -sL https://hg.prosody.im/prosody-modules/raw-file/785389a2d2b3/mod_omemo_all_access/mod_omemo_all_access.lua > /usr/lib/prosody/modules/mod_omemo_all_access.lua

Other things to check

@@ -130,22 +131,10 @@ Nowadays, use can use Certbot to generate certificates and use a convenient comm

If you have multi-user chat enabled, be sure to get a certificate for that subdomain as well. -I usually just create a dummy nginx site for each and run it with the --nginx option. -This makes auto-renewal a little easier. +Include the --nginx option assuming you have an Nginx server running.

- - - - - - - - - - - -
certbot --nginx
+
certbot -d chat.example.org --nginx

Once you have the certificates for encryption, run the following to import them into Prosody. @@ -170,7 +159,7 @@ Let's manually create the admin user we prepared for above. Note that you can indeed do this in your XMPP client if you have not disabled registration, but this is how it is done on the command line:

-
prosodyctl adduser chad@landchad.net
+
prosodyctl adduser chad@example.org

This will prompt you to create a password as well.

@@ -181,7 +170,7 @@ Note that you can indeed do this in your XMPP client if you have not disabled re With any system service, use systemctl reload or systemctl restart to make the new settings active:

-
systemctl reload prosody
+
systemctl restart prosody
-- cgit v1.2.3