update example configuration files
This commit is contained in:
parent
2ec730020f
commit
8d34923ef5
|
@ -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
etc/prosody/conf.d/transwhat.cfg.lua
Normal file
4
etc/prosody/conf.d/transwhat.cfg.lua
Normal file
|
@ -0,0 +1,4 @@
|
|||
Component "whatsapp.0l.de"
|
||||
component_secret = "whatsappsucks"
|
||||
component_ports = { 5221 }
|
||||
component_interface = "127.0.0.1"
|
30
etc/spectrum2/transports/transwhat.cfg
Normal file
30
etc/spectrum2/transports/transwhat.cfg
Normal 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
|
||||
|
Loading…
Reference in a new issue