Browse Source

update example configuration files

yowsup-3
Steffen Vogel 1 year ago
parent
commit
8d34923ef5
3 changed files with 36 additions and 2 deletions
  1. + 2
    - 2
      INSTALL.rst
  2. + 4
    - 0
      etc/prosody/conf.d/transwhat.cfg.lua
  3. + 30
    - 0
      etc/spectrum2/transports/transwhat.cfg

+ 2
- 2
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:
::

+ 4
- 0
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"

+ 30
- 0
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

Loading…
Cancel
Save