lab icon indicating copy to clipboard operation
lab copied to clipboard

[adnanh / webhook] new guide

Open codedust opened this issue 2 years ago • 1 comments

Currently, there's no easy option to run shells scripts via incoming webhooks. Previously, it was possible to use cgi for this, but CGI is no longer officially supported.

webhook ca be used for this:

webhook is a lightweight incoming webhook server to run shell commands.

Using webhook might help some people waiting for #575.

codedust avatar Apr 29 '23 09:04 codedust

Notes

mkdir webhook && cd webhook
go install github.com/adnanh/[email protected]   # <- make sure to replace version number
vim hooks.yaml
mkdir scripts && cd scripts
vim testhook.sh
chmod +x testhook.sh


vim ~/etc/services.d/webhook.ini
supervisorctl reread
supervisorctl update
supervisorctl status
uberspace web backend set /hooks --http --port 9000

codedust avatar Apr 29 '23 10:04 codedust