These files are an example setup to have Tailscale webhooks deliver to a Telegram channel with https://github.com/adnanh/webhook fronted with Traefik, protected with an HTTP basic authentication setup.
Get a set of credentials to populate in the in the traefik.http.middlewares.basic-auth.basicauth.users
label with htpasswd -Bn user
. Remember to double escape the $
sign.
Then, in the Tailscale administrator console, add a new webhook endpoint that would point to something like https://user:pass@webhook.domain.com/hooks/tailscale
after configuring your docker-compose.yml
file appropriately.
Example file layout should be:
./docker-compose.yml
./hooks
./hooks/hooks.yml
./hooks/scripts
./hooks/scripts/include
./hooks/scripts/include/telegram.sh
./hooks/scripts/tailscale.sh