* Add a template plugin The template plugin matches the incoming query by class, type and regex and templates a response with go templates. * Fix go style errors * Fix template README example * Fix corefile example in plugin/template * Clarify plugin/template/README.md Add more details and external links where needed. * Fix code issues in plugin/template * Add template metrics * Add section and template to template plugin metrics * Fix style / remove extra newline on go imports * Fix typo in plugin/template/README.md * Update README.md I've change the format a bit in a PR that I merged yesterday. * Add authority section to plugin/template * Fix naming of incoming query name in plugin/template/README.md * Fix doc syntax in plugin/template/README.md * Add authority section to plugin/template/README.md config overview * Add metric labels to plugin/template/README.md metrics section * Use request.Request to pass state to the template matcher
53 lines
1.1 KiB
INI
53 lines
1.1 KiB
INI
# Directives are registered in the order they should be
|
|
# executed.
|
|
#
|
|
# Ordering is VERY important. Every plugin will
|
|
# feel the effects of all other plugin below
|
|
# (after) them during a request, but they must not
|
|
# care what plugin above them are doing.
|
|
|
|
# How to rebuild with updated plugin configurations:
|
|
# Modify the list below and run `go gen && go build`
|
|
|
|
# The parser takes the input format of
|
|
# <plugin-name>:<package-name>
|
|
# Or
|
|
# <plugin-name>:<fully-qualified-package-name>
|
|
#
|
|
# External plugin example:
|
|
# log:github.com/coredns/coredns/plugin/log
|
|
# Local plugin example:
|
|
# log:log
|
|
|
|
tls:tls
|
|
nsid:nsid
|
|
root:root
|
|
bind:bind
|
|
debug:debug
|
|
trace:trace
|
|
health:health
|
|
pprof:pprof
|
|
prometheus:metrics
|
|
errors:errors
|
|
log:log
|
|
dnstap:dnstap
|
|
chaos:chaos
|
|
cache:cache
|
|
rewrite:rewrite
|
|
loadbalance:loadbalance
|
|
dnssec:dnssec
|
|
autopath:autopath
|
|
reverse:reverse
|
|
template:template
|
|
hosts:hosts
|
|
federation:federation
|
|
kubernetes:kubernetes
|
|
file:file
|
|
auto:auto
|
|
secondary:secondary
|
|
etcd:etcd
|
|
proxy:proxy
|
|
erratic:erratic
|
|
whoami:whoami
|
|
startup:github.com/mholt/caddy/startupshutdown
|
|
shutdown:github.com/mholt/caddy/startupshutdown
|