Skip to content

Ejabberd module for notify offline users about messages by POST request by server end-point.

Notifications You must be signed in to change notification settings

mitulmlakhani/mod_offline_http_post_ext

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Ejabberd >= 17.01 module to send offline user's message via POST request to target URL. This module can call an api to send e.g. a push message. The request body is in application/x-www-form-urlencoded format. See the example below.

Installation

  1. cd /opt/ejabberd-{your ejabbed version}/.ejabberd-module/sources/
  2. git clone https://github.com/mitulmlakhani/mod_offline_http_post_ext.git;
  3. bash /opt/ejabberd-{your ejabbed version}/.ejabberd-module/bin/ejabberdctl module-install mod_offline_http_post_ext
  4. /etc/init.d/ejabberd restart;

Great, The module is now installed.

Configuration

Add the following to ejabberd configuration under modules:

mod_offline_http_post_ext:
    auth_token: "secret"
    post_url: "http://example.com/send_push"
  • auth_token - custom static token for authorize request.
  • post_url - your server's endpoint url

About

Ejabberd module for notify offline users about messages by POST request by server end-point.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published