Commit 77bd7eae authored by Miek Gieben's avatar Miek Gieben Committed by GitHub

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
parent 1e75061a
...@@ -41,6 +41,7 @@ var Directives = []string{ ...@@ -41,6 +41,7 @@ var Directives = []string{
"proxy", "proxy",
"erratic", "erratic",
"whoami", "whoami",
"on",
"startup", "startup",
"shutdown", "shutdown",
} }
...@@ -35,5 +35,6 @@ import ( ...@@ -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"
) )
...@@ -50,5 +50,6 @@ etcd:etcd ...@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment