Add on plugin (#1412)

Enable this Caddy plugin by default. Docs will go up coredns.io for this
as well.

See https://caddyserver.com/docs/on
This commit is contained in:
Miek Gieben
2018-01-25 11:02:51 +00:00
committed by GitHub
parent 1e75061aec
commit 77bd7eaede
3 changed files with 3 additions and 0 deletions

View File

@@ -41,6 +41,7 @@ var Directives = []string{
"proxy", "proxy",
"erratic", "erratic",
"whoami", "whoami",
"on",
"startup", "startup",
"shutdown", "shutdown",
} }

View File

@@ -35,5 +35,6 @@ import (
_ "github.com/coredns/coredns/plugin/tls" _ "github.com/coredns/coredns/plugin/tls"
_ "github.com/coredns/coredns/plugin/trace" _ "github.com/coredns/coredns/plugin/trace"
_ "github.com/coredns/coredns/plugin/whoami" _ "github.com/coredns/coredns/plugin/whoami"
_ "github.com/mholt/caddy/onevent"
_ "github.com/mholt/caddy/startupshutdown" _ "github.com/mholt/caddy/startupshutdown"
) )

View File

@@ -50,5 +50,6 @@ etcd:etcd
proxy:proxy proxy:proxy
erratic:erratic erratic:erratic
whoami:whoami whoami:whoami
on:github.com/mholt/caddy/onevent
startup:github.com/mholt/caddy/startupshutdown startup:github.com/mholt/caddy/startupshutdown
shutdown:github.com/mholt/caddy/startupshutdown shutdown:github.com/mholt/caddy/startupshutdown