This documentation assumes that you:
- already have a working Prosody configuration,
- it works with together JSXC, and
- you have a simple, single-domain, single-purpose installation.
If you need to start from scratch, look at our step-by-step tutorial. If you have advanced requirements, would like to know background, or run into trouble with this setup, read the full installation instructions.
Currently, only nightlies are supported, which you get by
sudo -s
echo deb https://dl.jsxc.org stable main > /etc/apt/sources.list.d/jsxc.list
wget -qO - https://dl.jsxc.org/archive.key | apt-key add -
apt update
apt install xcauth
cp xcauth.conf /etc
chown xcauth:xcauth /etc/xcauth.conf
chmod 660 /etc/xcauth.conf
Modify /etc/xcauth.conf
according to your environment. The values for
API URL and API SECRET can be found in your Nextcloud JSXC admin page.
Add the following to your Prosody config (probably /etc/prosody/prosody.cfg.lua
):
authentication = "external"
external_auth_command = "/opt/xmpp-cloud-auth/xcauth.py"
plugin_paths = { "/opt/xmpp-cloud-auth/prosody-modules/" }
Ready!