update example configuration files

This commit is contained in:
Steffen Vogel 2019-04-25 23:08:44 +02:00
parent 2ec730020f
commit 8d34923ef5
3 changed files with 36 additions and 2 deletions

View file

@ -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:
::

View file

@ -0,0 +1,4 @@
Component "whatsapp.0l.de"
component_secret = "whatsappsucks"
component_ports = { 5221 }
component_interface = "127.0.0.1"

View file

@ -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