ntfy-bridge

command module
v0.0.0-...-f8a25d4 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: MIT Imports: 7 Imported by: 0

README

ntfy-bridge

Bridge for various implementations to publish to ntfy.

Installation

Using go:

go install forge.babariviere.com/babariviere/ntfy-bridge@latest

Or using docker:

docker pull forge.babariviere.com/babariviere/ntfy-bridge:latest

Binaries are also avaiable in the release section.

Usage

First, you need to create a configuration file. A sample one is provided here.

For now, we have these handler types:

  • flux: handle notification from Flux
  • discord_embed: handle preformated notification from discord embeds (see embed object)
  • alertmanager: handle notification from alertmanager using webhook_config

Once you have created your config file, you can either put it in these directories:

  • /etc/ntfy-bridge/config.scfg
  • $HOME/.ntfy-bridge/config.scfg
  • $HOME/.config/ntfy-bridge/config.scfg
  • config.scfg (current directory)

Then, you can simply run the binary with either the native binary:

./ntfy-bridge

Or via docker:

docker run -v config.scfg:/etc/ntfy-bridge/config.scfg -p 8080 forge.babariviere.com/babariviere/ntfy-bridge:latest

Sample config for kubernetes can be found in ./k8s/ directory.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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