introduced dockerhealth

This commit is contained in:
Tordarus 2022-01-14 16:44:13 +01:00
parent 640b38ea5f
commit f9d1b22a7e

View File

@ -15,6 +15,8 @@ import (
"strconv"
"strings"
"syscall"
"git.tordarus.net/Tordarus/dockerhealth"
)
var (
@ -34,6 +36,7 @@ func main() {
fileServer = http.FileServer(http.Dir(*directory))
http.HandleFunc("/", handler)
dockerhealth.Healthy = true
err := http.ListenAndServe(fmt.Sprintf("%s:%d", *intf, *port), nil)
if err != nil {
panic(err)