From 8d34923ef56646fb18e7e34d7728c2c9c65e4b84 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Thu, 25 Apr 2019 23:08:44 +0200 Subject: [PATCH] update example configuration files --- INSTALL.rst | 4 ++-- etc/prosody/conf.d/transwhat.cfg.lua | 4 ++++ etc/spectrum2/transports/transwhat.cfg | 30 ++++++++++++++++++++++++++ 3 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 etc/prosody/conf.d/transwhat.cfg.lua create mode 100644 etc/spectrum2/transports/transwhat.cfg diff --git a/INSTALL.rst b/INSTALL.rst index c8f6ae8..cc12eb1 100644 --- a/INSTALL.rst +++ b/INSTALL.rst @@ -31,7 +31,7 @@ Configuration The only important thing for us is the configuration of a XMPP component (Spectrum 2 in our case). See http://prosody.im/doc/components. -Append the following at the end of ``/etc/prosody/prosody.cfg.lua`` +Append the following at the end of ``/etc/prosody/conf.d/transwhat.cfg.lua`` :: @@ -53,7 +53,7 @@ http://spectrum.im/documentation/installation/from\_source\_code.html. Configuration ~~~~~~~~~~~~~ -Create a new file ``/etc/spectrum2/transports/whatsapp.cfg`` with the +Create a new file ``/etc/spectrum2/transports/transwhat.cfg`` with the following content: :: diff --git a/etc/prosody/conf.d/transwhat.cfg.lua b/etc/prosody/conf.d/transwhat.cfg.lua new file mode 100644 index 0000000..9b6e07e --- /dev/null +++ b/etc/prosody/conf.d/transwhat.cfg.lua @@ -0,0 +1,4 @@ +Component "whatsapp.0l.de" + component_secret = "whatsappsucks" + component_ports = { 5221 } + component_interface = "127.0.0.1" diff --git a/etc/spectrum2/transports/transwhat.cfg b/etc/spectrum2/transports/transwhat.cfg new file mode 100644 index 0000000..9ab46d2 --- /dev/null +++ b/etc/spectrum2/transports/transwhat.cfg @@ -0,0 +1,30 @@ +[service] +user = spectrum +group = spectrum + +jid = whatsapp.0l.de + +server = localhost +password = whatsappsucks +port = 5221 + +backend_host = localhost +backend = /usr/bin/transwhat + +users_per_backend = 10 +more_resources = 1 + +admin_jid = your@jid.example + +[identity] +name = transWhat +type = xmpp +category = gateway + +[logging] +config = /etc/spectrum2/logging.cfg +backend_config = /etc/spectrum2/backend-logging.cfg + +[database] +type = sqlite3 +