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.
- Host: GitHub
- URL: https://github.com/mitulmlakhani/mod_offline_http_post_ext
- Owner: mitulmlakhani
- Created: 2020-05-19T09:21:21.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-19T09:32:46.000Z (about 6 years ago)
- Last Synced: 2025-03-13T17:16:56.505Z (over 1 year ago)
- Topics: ejabberd-module, ejabberd-push-notification, erlang
- Language: Erlang
- Size: 1000 Bytes
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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