Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 1.1 KB

README.md

File metadata and controls

34 lines (26 loc) · 1.1 KB

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