diff --git a/node/http.go b/node/http.go index 006b1b8b576cc6bdd127a097c17f6d0712a61373..75cd48e8b27c28018a72704850c5546924c0a1e4 100644 --- a/node/http.go +++ b/node/http.go @@ -42,6 +42,12 @@ func newHTTPHandler(n *Node, icecastPort int, domain string) http.Handler { Prefix: "static", }))) + // Simple healthcheck handler. + mux.HandleFunc("/healthcheck", func(w http.ResponseWriter, _ *http.Request) { + w.Header().Set("Content-Type", "text/plain") + io.WriteString(w, "OK") //nolint + }) + // Serve /debug/ pages using the default HTTP handler // (packages will automatically register their debug handlers // there). Using command-line flags it is possible to disable