The Delta Chat 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 Delta Chat app on user's devices.
The certificate file provided must be a .p12
file. Instructions for how to create can be found here.
$ cargo build --release
$ ./target/release/notifiers --certificate-file <file.p12> --password <password>
$ curl -X POST -d '{ "token": "<device token>" }' http://localhost:9000/register
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
.