-
Notifications
You must be signed in to change notification settings - Fork 2
/
README
58 lines (31 loc) · 1.31 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
== mod_last_redis ==
Simple ejabberd module implementing xmpp's last activity extension XEP-0012
using a redis data store.
It is using the redo library from Jacob Vorreuter that can be found on github.
Tested with ejabberd 2.1.10.
=== Specifications ===
XEP-0012 specification can be found at http://xmpp.org/extensions/xep-0012.html
=== Limitations ===
As for mod_last_odbc, some web screen do not shows last activity properly
when using mod_last_redis. See https://support.process-one.net/browse/EJAB-6.
=== Installation ===
1. Install and start a local redis server.
On ubuntu::
# aptitude install redis-server
# service redis-server start
2. Get and build redo::
$ git clone https://github.com/JacobVorreuter/redo.git
$ cd redo
$ make
3. Add redo to erlang path.
For current user::
$ echo "code:add_pathz(\"$PWD/ebin\")." >> ~/.erlang
4. Get and build mod_last_redis::
$ git clone https://github.com/sylane/mod_last_redis.git
$ cd mod_last_redis
$ EJABBERD_ROOT=$WHERE_EJABBERD_IS ./build()
5. Copy mod_last_redis.beam to ejabberd ebin directory::
$ cp ebin/mod_last_redis.beam $WHERE_EJABBERD_IS/ebin
6. Modify ejabberd.cfg:
Change {mod_last, []} to {mod_last_redis, []}.
7. Starts ejabberd.