summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2021-07-21 14:38:59 -0400
committerLuke Smith <luke@lukesmith.xyz>2021-07-21 14:38:59 -0400
commit420b864dcf3dfabfd0b97badacaa6c118dc36087 (patch)
tree6b926a79f5f2b5a096795f576c664c01da583a4a
parentc75943450a4e8cb55d566f449bc5e4606f5e2811 (diff)
xmpp prosody almost done, needs testing
-rw-r--r--xmpp.html33
1 files changed, 11 insertions, 22 deletions
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 <code>admins = { }</code> and to this we can specify one
</p>
<pre><code># 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" }</code></pre>
+admins = { "chad@example.org", "chadmin@example.org" }</code></pre>
<p>
Note that we have not created these accounts yet, we will do this <a href=#user>below</a>.
@@ -62,7 +62,7 @@ Note that we have not created these accounts yet, we will do this <a href=#user>
<p>
Find the line <code>VirtualHost "localhost"</code> and replace <code>localhost</code> with your domain.
-In our case, we will have <code>VirtualHost "landchad.net"</code>
+In our case, we will have <code>VirtualHost "example.org"</code>
</p>
<h3>Multi-User Chats</h3>
@@ -73,7 +73,8 @@ This is easily enough to enable.
In the config file, add the following:
</p>
-<pre><code>Component "<strong>chat.landchad.xyz</strong>" "muc"
+<pre><code>Component "<strong>chat.example.org</strong>" "muc"
+ modules_enabled = { "muc_mam" }
restrict_room_creation = "admin"</code></pre>
<p>
@@ -105,7 +106,7 @@ Find the array beginning with <code>modules_enabled</code>.
This includes a list of modules to be used.
Add
<code>"omemo_all_access";</code> to that list.
-</p>
+Additionally, be sure to change the module <code>pep</code> to <code>pep_simple</code> or this will cause a conflict.</p>
<p>
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.
</p>
-<pre><code style=font-size:x-small>curl -sL https://hg.prosody.im/prosody-modules/raw-file/785389a2d2b3/mod_omemo_all_access/mod_omemo_all_access.lua &gt; /usr/lib/prosody/modules/mod_omemo_all_access.lua</code></pre>
+<pre class=wide><code>curl -sL https://hg.prosody.im/prosody-modules/raw-file/785389a2d2b3/mod_omemo_all_access/mod_omemo_all_access.lua &gt; /usr/lib/prosody/modules/mod_omemo_all_access.lua</code></pre>
<h3>Other things to check</h3>
@@ -130,22 +131,10 @@ Nowadays, use can use Certbot to generate certificates and use a convenient comm
<p>
<strong>If you have multi-user chat enabled, be sure to get a certificate for that subdomain as well.</strong>
-I usually just create a dummy nginx site for each and run it with the <code>--nginx</code> option.
-This makes auto-renewal a little easier.
+Include the <code>--nginx</code> option assuming you have an Nginx server running.
</p>
-<!-- <pre><code>server { -->
-<!-- listen 80 ; -->
-<!-- listen [::]:80 ; -->
-<!-- root /var/www/html; -->
-<!-- index index.html index.htm index.nginx-debian.html; -->
-<!-- server_name <strong>muc.landchad.net</strong> ; -->
-<!-- location / { -->
-<!-- try_files $uri $uri/ =404; -->
-<!-- } -->
-<!-- }</code></pre> -->
-
-<pre><code>certbot --nginx</code></pre>
+<pre><code>certbot -d <strong>chat.example.org</strong> --nginx</code></pre>
<p>
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:
</p>
-<pre><code>prosodyctl adduser chad@landchad.net</code></pre>
+<pre><code>prosodyctl adduser <strong>chad@example.org</strong></code></pre>
<p>This will prompt you to create a password as well.</p>
@@ -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 <code>systemctl reload</code> or <code>systemctl restart</code> to make the new settings active:
</p>
-<pre><code>systemctl reload prosody</code></pre>
+<pre><code>systemctl restart prosody</code></pre>
</main>
<footer><a href="https://landchad.net">LandChad.net</a></br>Because Everyone should be an Internet LandChad.</br><a href="index.html"><li><img src="pix/chad.gif" alt="chad"></li></a><a href="rss.xml"><li><img src="pix/rss.svg" alt="RSS"></li></a><a href="pix/btc.png"><li><img src="pix/btc.svg" alt="BTC"></li></a><a href="pix/xmr.png"><li><img src="pix/xmr.svg" alt="XMR"></li></a><a href="https://github.com/lukesmithxyz/landchad"><li><img src="pix/git.svg" alt="Github"></li></a></footer>