Ghost Letters 幽霊文字


Create WebHooks with Caddy


WebHook == Run Some Command A webhook is a an HTTP endpoint that triggers ‘some action’. The action will be specific for the application that provides the endpoint. In my case the action/endpoint will update my blog. Let’s ignore for a moment how exactly ‘updating the blog’ works, and just pretend I want to execute some arbitrary command on my server as soon as I call some very specific URL.

Basic Blog Blocks - Caddy Web Server


With a domain and a (virtual) server the foundation is ready, and we can start to serve some basic HTML to our readers. Therefore, we need a web server - meaning a software that can talk to browsers that call our domain. I went with Caddy 2, which is a rather new web server written in Go. The nice part of caddy is that it was developed with encryption via https in mind.