lab
lab copied to clipboard
[adnanh / webhook] new guide
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.
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