annotate doc/installation.rst @ 406:a58610ab2983

removed old code: - removed gateway which was an HTTP gateway inherited from Idavoll and which is not used is SàT Pubsub - removed memory_storage which has not been maintained since Idavoll and which is expected to be replaced by a sqlite-based backend - simplejson dependency is not used anymore
author Goffi <goffi@goffi.org>
date Fri, 16 Aug 2019 12:00:03 +0200
parents 105a0772eedd
children f527dc927a6a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
404
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
1 ============
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
2 Installation
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
3 ============
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
4
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
5 This are the instructions to install SàT Pubsub.
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
6
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
7 Please note that SàT PubSub, as all SàT ecosystem, is still using Python 2 (this will
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
8 change for 0.8 version which will be Python 3 only), so all instructions below have to be
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
9 made using python 2.
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
10
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
11 .. note::
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
12
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
13 SàT PubSub is not released yet and this documentation is work in progress
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
14
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
15
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
16 Requirements
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
17 ------------
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
18
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
19 - Python 2.7.x
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
20 - Twisted >= 15.2.0:
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
21 - Twisted Core
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
22 - Twisted Words
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
23 - Wokkel >= 0.7.1 (http://wokkel.ik.nu/)
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
24 - A XMPP server that supports the component protocol (XEP-0114),
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
25 and, to enable the micro-blogging feature, Namespace Delegation (XEP-0355)
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
26 and privileged entity (XEP-0356) are needed.
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
27 We recommend using Prosody with mod_privilege and mod_delegation modules (those modules
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
28 are maintained by us).
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
29 - SàT tmp (http://repos.goffi.org/sat_tmp) is currently needed for MAM and RSM handling
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
30
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
31 For the PostgreSQL backend, the following is also required:
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
32
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
33 - PostgreSQL >= 9.5 (including development files for psycopg2)
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
34 - psycopg2
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
35
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
36 Installation From Sources
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
37 -------------------------
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
38
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
39 .. note::
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
40
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
41 The installation script is not up-to-date (notably requirements). The situation should
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
42 improve soon.
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
43
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
44 To install SàT PubSub we'll work in a virtual environment. On Debian and derivatives you
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
45 should easily install dependencies with this::
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
46
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
47 sudo apt-get install postgresql python-psycopg2 python-dev mercurial virtualenv
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
48
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
49 Now go in a location where you can install SàT Pubsub, for instance your home directory::
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
50
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
51 $ cd
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
52
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
53 And enter the following commands (note that *virtualenv2* may be named
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
54 *virtualenv* on some distributions, just be sure it's Python **2** version)::
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
55
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
56 $ virtualenv2 env
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
57 $ source env/bin/activate
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
58 $ pip install uuid twisted wokkel psycopg2 sat_tmp
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
59 $ pip install hg+https://repos.goffi.org/sat_pubsub
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
60
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
61 Post Installation
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
62 -----------------
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
63
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
64 Once SàT Pubsub is installed, you'll need to create a PostgreSQL user, and create the
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
65 database::
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
66
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
67 % sudo -u postgres createuser -d -P $(whoami)
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
68 % createdb pubsub
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
69 % cd /tmp && wget https://repos.goffi.org/sat_pubsub/raw-file/tip/db/pubsub.sql
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
70 % psql pubsub < pubsub.sql
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
71
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
72
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
73 .. _prosody_configuration:
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
74
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
75 Prosody Configuration
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
76 ---------------------
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
77
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
78 SàT PubSub can work with any XMPP server (which supports components), but if you want to
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
79 use it as your PEP service, you need a server which supports `XEP-0355`_ and `XEP-0356`_.
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
80
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
81 Below you'll find the instruction to use SàT PubSub as a PEP service with Prosody:
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
82
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
83 - add these two lines at the end of your ``prosody.cfg.lua`` file, adapting them to your XMPP
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
84 server domain (virtual host) and selecting a password of your choice:
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
85
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
86 .. sourcecode:: lua
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
87
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
88 Component "sat-pubsub.<xmpp_domain>"
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
89 component_secret = "<password>"
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
90
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
91 - there are extra steps to enable the micro-blogging feature with Prosody. Please follow
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
92 the installation and configuration instructions that are given on these pages:
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
93
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
94 - https://modules.prosody.im/mod_delegation.html
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
95 - https://modules.prosody.im/mod_privilege.html
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
96
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
97 To keep your modules up to date, we recommend to clone the full modules
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
98 repository and then to symlink them like that:
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
99
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
100 .. sourcecode:: shell
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
101
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
102 % cd /path/to/install_dir
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
103 % hg clone https://hg.prosody.im/prosody-modules
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
104 % cd /path/to/prosody_plugins
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
105 % ln -sf /path/to/install_dir/prosody-modules/mod_delegation ./
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
106 % ln -sf /path/to/install_dir/prosody-modules/mod_privilege ./
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
107
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
108 Or course, you have to adapt ``/path/to/install_dir`` to the directory where you want to
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
109 install the modules, and ``/path/to/prosody_plugins`` to the directory where prosody
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
110 modules are installed (hint: check ``prosodyctl about`` to find the latter). The ``ln``
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
111 commands may have to be run as root depending on your installation.
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
112
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
113 Once your symlinks are set, to update the modules we just need to type this:
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
114
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
115 .. sourcecode:: shell
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
116
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
117 % cd /path/to/install_dir/prosody-modules
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
118 % hg pull -u
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
119
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
120 Here is an example of how your ``prosody.cfg.lua`` should look like with
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
121 ``mod_delegation`` and ``mod_privilege`` activated:
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
122
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
123 .. sourcecode:: lua
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
124
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
125 [...]
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
126 modules_enabled = {
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
127 [...]
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
128 "delegation";
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
129 "privilege";
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
130 }
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
131 [...]
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
132 VirtualHost "<xmpp_domain>"
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
133 privileged_entities = {
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
134 ["sat-pubsub.<xmpp_domain>"] = {
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
135 roster = "get";
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
136 message = "outgoing";
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
137 presence = "roster";
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
138 },
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
139 }
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
140 delegations = {
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
141 ["urn:xmpp:mam:2"] = {
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
142 filtering = {"node"};
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
143 jid = "sat-pubsub.<xmpp_domain>";
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
144 },
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
145 ["http://jabber.org/protocol/pubsub"] = {
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
146 jid = "sat-pubsub.<xmpp_domain>";
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
147 },
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
148 ["http://jabber.org/protocol/pubsub#owner"] = {
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
149 jid = "sat-pubsub.<xmpp_domain>";
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
150 },
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
151 ["https://salut-a-toi/protocol/schema:0"] = {
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
152 jid = "sat-pubsub.<xmpp_domain>";
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
153 },
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
154 ["http://jabber.org/protocol/disco#items:*"] = {
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
155 jid = "sat-pubsub.<xmpp_domain>";
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
156 },
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
157 ["https://salut-a-toi.org/spec/pubsub_admin:0"] = {
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
158 jid = "sat-pubsub.<xmpp_domain>";
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
159 },
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
160 }
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
161
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
162 Component "sat-pubsub.<xmpp_domain>"
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
163 component_secret = "<password>"
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
164 modules_enabled = {"delegation", "privilege"}
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
165
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
166 Of course, you still have to replace and adapt to your own settings.
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
167
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
168 .. _XEP-0355: https://xmpp.org/extensions/xep-0355.html
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
169 .. _XEP-0356: https://xmpp.org/extensions/xep-0356.html
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
170
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
171 Running SàT PubSub
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
172 ------------------
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
173
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
174 The minimal example for running sat_pubsub is:
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
175
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
176 % twistd sat_pubsub
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
177
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
178 This will start the service and run it in the background. It generates a
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
179 file twistd.pid that holds the PID of the service and a log file twistd.log.
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
180 The twistd utility has a fair number of options that might be useful, and
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
181 can be viewed with:
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
182
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
183 % twistd --help
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
184
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
185 When the service starts, it will connect to the XMPP server at the local machine using the
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
186 component protocol, and assumes the JID ``pubsub``. This assumes a couple of defaults
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
187 which can be overridden by passing parameters to the twistd plugin. You can get an
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
188 overview of the parameters and their defaults using:
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
189
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
190 % twistd sat_pubsub --help
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
191
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
192 In particular, the following parameters will be of interest:
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
193
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
194 ``--jid``
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
195 The Jabber ID the component will assume.
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
196
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
197 ``--rport``
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
198 the port number of the XMPP server to connect to
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
199
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
200 ``--xmpp_pwd``
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
201 the secret used to authenticate with the XMPP server.
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
202
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
203 For example::
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
204
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
205 twistd sat_pubsub --jid=sat-pubsub.<your_xmpp_domain> --xmpp_pwd=<password>
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
206
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
207 You can set your options in ``sat.conf`` which is the same file used as for Salut à Toi
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
208 ecosystem. Please check backend ``configuration`` section for details. The SàT PubSub
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
209 options must be in ``[pubsub]`` section.
105a0772eedd doc: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
210