This is an example project to illustrate the usage of the go-mastopush library.
We create an HTTP server that handles incoming Web Push requests and forwards the decrypted
notification payload to a Gotify server.
Installation
git clone [email protected]:buckket/go-mastopush.git
cd go-mastopush
go build example/mastopush.go
Usage
Copy and adjust config.toml
Create a Gotify app and copy the access token
The Mastodon API token needs to have the push scope
Optional: Use a reverse proxy to redirect incoming requests to mastopush