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

https://github.com/chatmail/notifiers

Notify devices
https://github.com/chatmail/notifiers

apns chatmail fcm notifications proxy

Last synced: 8 months ago
JSON representation

Notify devices

Awesome Lists containing this project

README

          

# Chatmail Notification Proxy

The Chatmail notification proxy is deployed as a central service
on https://notifications.delta.chat

The notification proxy is a small Rust program
that forwards "device tokens" to Apple and Google "Push Services"
that in turn wake up the clients
using [Chatmail core](https://github.com/chatmail/core/) on user's devices.

## Usage

### Certificates

The certificate file provided must be a `.p12` file. Instructions for how to create can be found [here](https://stackoverflow.com/a/28962937/1358405).

### Running

```sh
$ cargo build --release
$ ./target/release/notifiers --certificate-file --password
```

### Registering devices

```sh
$ curl -X POST -d '{ "token": "" }' http://localhost:9000/register
```

### Enabling metrics

To enable OpenMetrics (Prometheus) metrics endpoint,
run with `--metrics` argument,
e.g. `--metrics 127.0.0.1:9001`.
Metrics can then be retrieved with
`curl http://127.0.0.1:9001/metrics`.