Simple webhook receiver program https://codeberg.org/grisu48/weblug
Go to file
Felix Niederwanger c3347383a1
Add Taskfile
Adds a taskfile to compile weblug.

Signed-off-by: phoenix <felix@feldspaten.org>
2023-09-04 20:52:11 +02:00
cmd/weblug Remove simple 2023-05-06 17:30:53 +02:00
doc Add man page 2023-04-27 13:35:44 +02:00
test Add testing 2022-12-29 16:03:11 +01:00
.gitignore Initial commit 2022-02-08 09:58:24 +01:00
go.mod Increase to go1.18 2022-12-29 16:12:52 +01:00
go.sum First prototype 2022-02-08 11:25:22 +01:00
LICENSE Initial commit 2022-02-08 09:58:24 +01:00
Makefile Refactor hook 2023-04-22 10:23:03 +02:00
README.md Add Taskfile 2023-09-04 20:52:11 +02:00
Taskfile.yml Add Taskfile 2023-09-04 20:52:11 +02:00
weblug.service Add systemd unit 2023-04-21 18:56:27 +02:00
weblug.spec Add spec file 2023-05-16 20:33:11 +02:00
weblug.yml Typo 2023-04-22 13:42:32 +02:00

weblug

Webhook receiver program. weblug is is a configurable webhook receiver that allows users to define custom programs and script to be executed when a webhook is triggered.

The configuration happens via a yaml file.

weblug supports multiple webhooks, limitations for concurrent web hooks to be executed, background execution and running webhooks as separate user (uid/gid).

Usage

To use weblug you need to define webooks in a yaml file. See weblug.yml for an example configuration. Then run

./weblug YAML-FILE

This starts the webserver and listens for incoming webhooks.

weblug can run as any user, however for custom uid/gid webhooks, the program needs to run as root.

Build

make               # Build weblug
make static        # Make a static binary

Alternatively you there is also a Taskfile

task
task static        # Build static binary

Run as systemd unit

This repository provides an example weblug.service, which can be used to start weblug as systemd service. This file can be placed in /etc/systemd/system/weblug.service and in conjunction with an adequate weblug.yml file e.g. in /etc/weblug.yml this provides a way of running weblug as a native systemd service.