changeset 326:b76cbf59772b

update INSTALL file, we don't use remote roster anymore
author souliane <souliane@mailoo.org>
date Fri, 04 Mar 2016 11:26:07 +0100
parents 8d939378f023
children 6662cc9519cc
files INSTALL
diffstat 1 files changed, 36 insertions(+), 26 deletions(-) [+]
line wrap: on
line diff
--- a/INSTALL	Fri Jan 08 20:47:52 2016 +0100
+++ b/INSTALL	Fri Mar 04 11:26:07 2016 +0100
@@ -7,8 +7,9 @@
 - uuid.py (Python 2.5 std. lib. or http://pypi.python.org/pypi/uuid)
 - Wokkel >= 0.5.0 (http://wokkel.ik.nu/)
 - A Jabber server that supports the component protocol (XEP-0114),
-  and, to enable the micro-blogging feature, the remote roster
-  management protocol (XEP-0321). We recommend using Prosody.
+  and, to enable the micro-blogging feature, the Namespace Delegation
+  (XEP-0355) and Privileged Entity (XEP-0356) protocols. We recommend
+  using Prosody.
 
 For the PostgreSQL backend, the following is also required:
 
@@ -96,36 +97,45 @@
 ===============================
 
 To enable the micro-blogging feature with Prosody XMPP server, you need
-the remote_roster plugin. Check if the remote_roster plugin is already
-in your Prosody installation:
+the delegation and privilege plugins:
 
-  cd prosody/plugins
-  ls mod_remote_roster.lua
+  https://modules.prosody.im/mod_delegation.html
+  https://modules.prosody.im/mod_privilege.html
 
-If you can't see it, download it from here:
-
-  wget http://prosody-modules.googlecode.com/hg/mod_remote_roster/mod_remote_roster.lua
+Your prosody.cfg.lua file needs to look a bit like that:
 
-You need to patch the file (commenting two lines to make all contacts available):
-
-  wget http://paste.debian.net/download/12106
-  patch -p2 < paste_1206
-
-Edit the prosodi.cfg.lua file to add this module:
-
-  modules_enabled = {
-                [...]
-                "remote_roster";
-                [...]
+[...]
+modules_enabled = {
+              [...]
+              "delegation";
+              "privilege";
+}
+[...]
+VirtualHost "<xmpp_domain>"
+  privileged_entities = {
+    ["sat-pubsub.<xmpp_domain>"] = {
+      roster = "get";
+      message = "outgoing";
+    },
+  }
+  delegations = {
+    ["urn:xmpp:mam:1"] = {
+      filtering = {"node"};
+      jid = "sat-pubsub.<xmpp_domain>";
+    },
+    ["http://jabber.org/protocol/pubsub"] = {
+      jid = "sat-pubsub.<xmpp_domain>";
+    },
   }
 
-Also add these two lines at the end of the file, adapting them to your XMPP server
-domain (virtual host) and selecting a password of your choice:
+Component "sat-pubsub.<xmpp_domain>"
+   component_secret = "<password>"
+   modules_enabled = {"delegation", "privilege"}
 
-  Component "sat-pubsub.<xmpp_domain>"
-          component_secret = "<password>"
+Of course, you have to replace <xmpp_domain> and <password> with the good
+values.
 
-For a more complete installation and configuration of Prosody to be used with
-sat_pubsub, please report yourself to the Salut à Toi wiki:
+For a more complete installation and configuration of Prosody to be used
+with sat_pubsub, please report yourself to the Salut à Toi wiki:
 
 http://wiki.goffi.org/wiki/Libervia/en#XMPP_server
\ No newline at end of file