example

command
v0.0.0-...-60954b1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2019 License: GPL-3.0 Imports: 11 Imported by: 0

README

mastopush

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
  • Run mastopush: ./mastopush -config config.toml

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL