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 +