integrate suggestions on cert renewal and deps
This commit is contained in:
parent
561c5f4d93
commit
2acaf47fb6
@ -2,12 +2,20 @@ Title: Configuring an XMPP server for secure, mobile instant messaging
|
|||||||
Date: 2018-1-09
|
Date: 2018-1-09
|
||||||
Category: xmpp
|
Category: xmpp
|
||||||
Tags: xmpp, chat, guide, instant messaging, prosody
|
Tags: xmpp, chat, guide, instant messaging, prosody
|
||||||
Slug: configuring-a-modern-xmpp-server
|
Slug: configuring-a-modern-xmpp-server-0.10
|
||||||
Description: Hands-on step-by-step guide that shows how to configure Prosody 0.10 for security, mobile messaging and ease of use.
|
Description: Hands-on step-by-step guide that shows how to configure Prosody 0.10 for security, mobile messaging and ease of use.
|
||||||
status: Published
|
status: draft
|
||||||
|
|
||||||
[TOC]
|
[TOC]
|
||||||
|
|
||||||
|
Attention!
|
||||||
|
---
|
||||||
|
This article describes how to set up Prosody 0.10 and kept online only for archival reasons! You are probably looking for the following article <https://homebrewserver.club/configuring-a-modern-xmpp-server.html>
|
||||||
|
|
||||||
|
Attention!
|
||||||
|
---
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
This is a guide to set up a modern XMPP server focused on security and mobile messaging. The whole guide assumes Debian stable running on the server, the fact that you will end up hosting a few of your friends and that you have some basic skills working on a linux command line.
|
This is a guide to set up a modern XMPP server focused on security and mobile messaging. The whole guide assumes Debian stable running on the server, the fact that you will end up hosting a few of your friends and that you have some basic skills working on a linux command line.
|
||||||
|
|
||||||
|
@ -2,9 +2,9 @@ Title: Configuring an XMPP server for secure, mobile instant messaging
|
|||||||
Date: 2018-11-17
|
Date: 2018-11-17
|
||||||
Category: xmpp
|
Category: xmpp
|
||||||
Tags: xmpp, chat, guide, instant messaging, prosody
|
Tags: xmpp, chat, guide, instant messaging, prosody
|
||||||
Slug: configuring-a-modern-xmpp-server-0.11
|
Slug: configuring-a-modern-xmpp-server
|
||||||
Description: Hands-on step-by-step guide that shows how to configure Prosody 0.11 aimed at security, mobile messaging, rich features and ease of use.
|
Description: Hands-on step-by-step guide that shows how to configure Prosody 0.11 aimed at security, mobile messaging, rich features and ease of use.
|
||||||
Status: draft
|
Status: Published
|
||||||
|
|
||||||
[TOC]
|
[TOC]
|
||||||
|
|
||||||
@ -68,7 +68,7 @@ Install the newest version of Prosody and its dependencies from the official pro
|
|||||||
|
|
||||||
wget https://prosody.im/files/prosody-debian-packages.key -O- | sudo apt-key add -
|
wget https://prosody.im/files/prosody-debian-packages.key -O- | sudo apt-key add -
|
||||||
|
|
||||||
sudo apt-get update && sudo apt-get install prosody
|
sudo apt-get update && sudo apt-get install prosody lua-sec
|
||||||
|
|
||||||
Install the newest prosody plugins:
|
Install the newest prosody plugins:
|
||||||
|
|
||||||
@ -202,10 +202,9 @@ Add an entry to cron to automatically renew LetsEncrypt certificates
|
|||||||
And add:
|
And add:
|
||||||
|
|
||||||
:::console
|
:::console
|
||||||
0 4 * * * /usr/bin/certbot renew && prosodyctl --root cert import /etc/letsencrypt/live
|
0 4 0 * 0 /usr/bin/certbot renew --renew-hook "prosodyctl --root cert import /etc/letsencrypt/live" --quiet
|
||||||
|
|
||||||
This will check and renew the certificates every day at 04:00.
|
|
||||||
|
|
||||||
|
This will check and renew the certificates every week on sunday at 04:00.
|
||||||
|
|
||||||
After you've set up all of the above it is time to start the server:
|
After you've set up all of the above it is time to start the server:
|
||||||
|
|
||||||
@ -235,23 +234,5 @@ When upgrading to prosody 0.11 on a server using sql make sure to run database u
|
|||||||
:::console
|
:::console
|
||||||
prosodyctl mod_storage_sql upgrade
|
prosodyctl mod_storage_sql upgrade
|
||||||
|
|
||||||
In the event you get an error about DBI not being found that is because Debian's Lua version doesn't support DBI. If that is the case you can do the following:
|
|
||||||
|
|
||||||
Download LuaRocks source from <http://luarocks.github.io/luarocks/releases>
|
|
||||||
|
|
||||||
Unpack it and compile with Lua5.2 support:
|
|
||||||
|
|
||||||
:::console
|
|
||||||
./configure --lua-version=5.2
|
|
||||||
make
|
|
||||||
sudo make install
|
|
||||||
|
|
||||||
Then proceed to install `luadbi` and `luadbi-` for the mysql backend you use (see [here](https://prosody.im/doc/depends) for more info):
|
|
||||||
|
|
||||||
:::console
|
|
||||||
luarocks install luadbi
|
|
||||||
luarocks install luadbi-mysql
|
|
||||||
|
|
||||||
Then you should be able to run the storage_sql upgrade as described above.
|
|
||||||
|
|
||||||
[^1]: Previous articles descibed how to set up [Prosody 0.9](https://homebrewserver.club/drafts/configuring-a-modern-xmpp-server-0.9.html) and [Prosody 0.10](https://homebrewserver.club/drafts/configuring-a-modern-xmpp-server-0.10.html)
|
[^1]: Previous articles descibed how to set up [Prosody 0.9](https://homebrewserver.club/drafts/configuring-a-modern-xmpp-server-0.9.html) and [Prosody 0.10](https://homebrewserver.club/drafts/configuring-a-modern-xmpp-server-0.10.html)
|
@ -2,10 +2,10 @@ Title: Configurar un servidor de mensajería instantánea XMPP seguro, para mens
|
|||||||
Date: 2018-11-17
|
Date: 2018-11-17
|
||||||
Category: xmpp
|
Category: xmpp
|
||||||
Tags: xmpp, chat, guide, instant messaging, prosody
|
Tags: xmpp, chat, guide, instant messaging, prosody
|
||||||
Slug: configuring-a-modern-xmpp-server-0.11
|
Slug: configuring-a-modern-xmpp-server
|
||||||
Description: Hands-on step-by-step guide that shows how to configure Prosody 0.11 aimed at security, mobile messaging, rich features and ease of use.
|
Description: Hands-on step-by-step guide that shows how to configure Prosody 0.11 aimed at security, mobile messaging, rich features and ease of use.
|
||||||
Lang: es
|
Lang: es
|
||||||
Status: draft
|
Status: Published
|
||||||
|
|
||||||
[TOC]
|
[TOC]
|
||||||
|
|
||||||
@ -67,7 +67,7 @@ Instala la version Prosody 0.11 y sus dependencias desde el repositorio oficial
|
|||||||
|
|
||||||
wget https://prosody.im/files/prosody-debian-packages.key -O- | sudo apt-key add -
|
wget https://prosody.im/files/prosody-debian-packages.key -O- | sudo apt-key add -
|
||||||
|
|
||||||
sudo apt-get update && sudo apt-get install prosody
|
sudo apt-get update && sudo apt-get install prosody lua-sec
|
||||||
|
|
||||||
Instala los plugins más recientes de Prosody:
|
Instala los plugins más recientes de Prosody:
|
||||||
|
|
||||||
@ -194,9 +194,9 @@ Configura `cron` para renovar los certificados LetsEncrypt automáticamente
|
|||||||
Añade al final:
|
Añade al final:
|
||||||
|
|
||||||
:::console
|
:::console
|
||||||
0 4 * * * /usr/bin/certbot renew && prosodyctl --root cert import /etc/letsencrypt/live
|
0 4 0 * 0 /usr/bin/certbot renew --renew-hook "prosodyctl --root cert import /etc/letsencrypt/live" --quiet
|
||||||
|
|
||||||
Esta configuración comprueba y renueva los certificados cada día a las 04:00.
|
Esta configuración comprueba y renueva los certificados cada domingo a las 04:00.
|
||||||
|
|
||||||
Cuando hayas hecho todo esto es hora de arrancar el servidor:
|
Cuando hayas hecho todo esto es hora de arrancar el servidor:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user