Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mastodon/webpush-fcm-relay
Relay encrypted WebPush notifications to Firebase Cloud Messaging.
https://github.com/mastodon/webpush-fcm-relay
fcm mastodon push-notifications webpush
Last synced: 4 months ago
JSON representation
Relay encrypted WebPush notifications to Firebase Cloud Messaging.
- Host: GitHub
- URL: https://github.com/mastodon/webpush-fcm-relay
- Owner: mastodon
- Created: 2022-04-03T11:01:28.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-04-11T08:25:25.000Z (10 months ago)
- Last Synced: 2024-04-13T14:05:35.552Z (9 months ago)
- Topics: fcm, mastodon, push-notifications, webpush
- Language: Go
- Homepage:
- Size: 21.5 KB
- Stars: 11
- Watchers: 6
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
webpush-fcm-relay
=================[![Go](https://github.com/mastodon/webpush-fcm-relay/actions/workflows/go.yml/badge.svg)](https://github.com/mastodon/webpush-fcm-relay/actions/workflows/go.yml)
Relay encrypted WebPush notifications to Firebase Cloud Messaging.
## Usage
```
Usage of ./webpush-fcm-relay:
-bind string
Bind address (default "127.0.0.1:42069")
-credentials-file-path string
Path to the Firebase credentials file
-max-queue-size int (default 1024)
The size of the internal queue
-max-workers int (default 4)
The number of workers sending requests to fcm
```## API
Send a request to `POST /relay-to/fcm/:device_token(/:extra)` with the encrypted payload in the body and content encoding `aesgcm`.
Required headers:
- `Content-Encoding`
- `Crypto-Key`
- `Encryption`Supported headers:
- `TTL`
- `Topic`
- `Urgency`## More information
See [toot-relay](https://github.com/DagAgren/toot-relay)