Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Update to modern Prosody configuration

...

Prosody is a lightweight XMPP server, written in lua. It's available from http://prosody.im.

Details

Download Prosody for your machine from http://prosody.im/download

The 0.6.0 has S2S TLS.

You will need to install LibSec module for Lua, also available from the http://prosody.im downloads page.Prosody is now included in most distributions package repositories, so doesn't require manual installation anymore.

Install the packages (Ubuntu/Debian)

Code Block
none
none
% sudo -s
# dpkgaptitude -i prosody_0.6.2-1_i386.deb liblua5.1-sec0_0.3.2-2prosody1_i386.deb
# apt-get install -finstall prosody

To configure Prosody under GNU/Linux you should find the config in /etc/prosody/prosody.cfg.lua. On other systems, or when not installed, it will be under the same directory as the prosody main executable. See also the Prosody configuration page.

We will configure this for acmewave.com, component port 5275, component secret 'sekritpassword'. with the server-to-server port (as set by your SRV record) to 5678.

At the top of the file in the 'Server-wide settings' section addAfter the Host "*" line, add a new line:

Code Block
none
none
Host "*"    component_ports = { 5275 }
    components2s_ports = { 52755678 }

At the bottom of the file , in the 'Components' section add

Code Block
none
none
Component "wave.acmewave.com"
    component_secret = "sekritpassword"

Just above that is a section starting with Host "example.com"titled 'Virtual hosts'. Change it to look like this:

Code Block
none
none
HostVirtualHost "acmewave.com"

    enabled = true

    ssl = {
        key = "/etc/prosody/certs/wave.acmewave.com.key";
        certificate = "/etc/prosody/certs/wave.acmewave.com.crt";
    }

...

Now continue following the instructions for installing and running the FedOne server.