Skip to content

izandromm/ejabberd_mod_offline_post

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

mod_offline_post

Send a push notification to a webservice when there's a message being sent to offline users. Supports groupchat and chat.

Install

Tested with ejabberd 17.01:

git clone <URL of this git repo>
# copy the source code folder to the module sources folder of your ejabberd
# installation (may be different on your machine - see CONTRIB_MODULES_PATH in /etc/ejaberd/ejabberdctl.cfg)
sudo mkdir -p /var/lib/ejabberd/.ejabberd-modules/sources/mod_offline_post
sudo cp -R <name of this repo>/*.spec <name of this repo>/src /var/lib/ejabberd/.ejabberd-modules/sources/mod_offline_post
# if done right ejabberdctl will list mod_offline_post as available module
ejabberdctl modules_available
# automatically compile and install mod_offline_post
ejabberdctl module_install mod_offline_post

Usage

Add in ejabberd.yaml

modules:
  mod_offline_post:
    post_url: "http://..."
    auth_token: "AUTHENTICATION_TOKEN"

Credits

Forked from ejabberd_mod by Nuno Horta and mod_interact by Adam Duke

About

ejabberd module for offline users push notification

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Erlang 94.4%
  • Ruby 5.6%