Follow

More details on how to create webhooks with caddy. I use it to trigger Hugo builds, but can be used for any command line job.

blog.ghostletters.xyz/notes/20

@ghost_letters Whoa, this is very straightforward using Caddy (as expected).

I'd probably add some BasicAuth, but this is a nice way to call a webhook from an NPM script for example in the terminal. Great post! 👍

@oedmarap thanks, glad you like it.

Yeah, depending on what the hook does, basic auth is a very good addition.

Sign in to participate in the conversation
Fosstodon

Fosstodon is an English speaking Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.