mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 08:14:18 -04:00
middlewware/startup|shutdown (#604)
Add middleware by directly linking it from caddy, i.e. without any code changes. To be fair: this does not added a ServeHTTP, but does give some nice features in the Corefile.
This commit is contained in:
@@ -34,4 +34,6 @@ var directives = []string{
|
||||
"proxy",
|
||||
"whoami",
|
||||
"erratic",
|
||||
"startup",
|
||||
"shutdown",
|
||||
}
|
||||
|
||||
@@ -27,4 +27,5 @@ import (
|
||||
_ "github.com/coredns/coredns/middleware/tls"
|
||||
_ "github.com/coredns/coredns/middleware/trace"
|
||||
_ "github.com/coredns/coredns/middleware/whoami"
|
||||
_ "github.com/mholt/caddy/startupshutdown"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user