An open API service indexing awesome lists of open source software.

https://github.com/mitulmlakhani/mod_offline_http_post_ext

Ejabberd module for notify offline users about messages by POST request by server end-point.
https://github.com/mitulmlakhani/mod_offline_http_post_ext

ejabberd-module ejabberd-push-notification erlang

Last synced: 9 months ago
JSON representation

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

Awesome Lists containing this project

README

          

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