mirror of
https://github.com/coredns/coredns.git
synced 2025-11-02 18:23:25 -05:00
* Make CoreDNS a server type plugin for Caddy Remove code we don't need and port all middleware over. Fix all tests and rework the documentation. Also make `go generate` build a caddy binary which we then copy into our directory. This means `go build`-builds remain working as-is. And new etc instances in each etcd test for better isolation. Fix more tests and rework test.Server with the newer support Caddy offers. Fix Makefile to support new mode of operation.
health
This module enables a simple health check.
By default it will listen on port 8080.
Restarting CoreDNS will stop the health checking. This is a bug. Also this upstream Caddy bug.
Syntax
health
It optionally takes an address, the default is :8080. The health path is fixed to /health. It
will just return "OK", when CoreDNS is healthy.
This middleware only needs to be enabled once.
Examples
health localhost:8091