Relay encrypted WebPush notifications to Firebase Cloud Messaging.

Tim Campbell 0819c19f09 Added datadog logging context for trace correlation (#8) 2 місяців тому
.github 5675434ba7 Add Datadog monitoring (#3) 7 місяців тому
.gitignore 27d6970b16 Initial commit 2 роки тому
Dockerfile 0423be8cfa Upgrade dependencies to use the new FCM API (#5) 2 місяців тому
README.md 8318ebc2ac Update README 2 місяців тому
go.mod 0423be8cfa Upgrade dependencies to use the new FCM API (#5) 2 місяців тому
go.sum 0423be8cfa Upgrade dependencies to use the new FCM API (#5) 2 місяців тому
webpush-fcm-relay.go 0819c19f09 Added datadog logging context for trace correlation (#8) 2 місяців тому

README.md

webpush-fcm-relay

Go

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