Skip to content

Ejabberd module that stores a global roster in redis

Notifications You must be signed in to change notification settings

lotreal/mod_global_roster

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

mod_global_roster

%% Compile erlc -I /Path/to/ejabberd/src/ src/mod_global_roster.erl

%% mv .beam to ejabberd/ebin

%% Add module to ejabberd.cfg

{mod_global_roster, [{key, "roster:"}, {redis_host, "0.0.0.0"}, {redis_port, 6379}, {redis_db, 0}}]}

%% Options above are defaults, overwrite for custom options.

%% Start ejabberd

%% Note eredis is a dependancy and needs to be in your code path

%% Install eredis git clone https://github.com/wooga/eredis.git

cd eredis

./rebar compile

%% (ln all files in ebin to ejabberd/ebin)

%% Install ejabberd full

git clone https://github.com/processone/ejabberd.git

cd ejabberd

git checkout -b 2.1.x origin/2.1.x

cd src

./configure (add path?)

make

sudo make install

%% Versions

%% Erlang >= OTP_R14A (eredis needs the binary module which seems to have been introduced in this version)

%% Ejabberd tested with 2.1.x but may work on others

About

Ejabberd module that stores a global roster in redis

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published