Fix caddy urls in the code as well

Signed-off-by: Miek Gieben <miek@miek.nl>
This commit is contained in:
Miek Gieben
2020-09-28 17:03:23 +02:00
parent 8bc06bd9b0
commit 38af4faf90
3 changed files with 6 additions and 9 deletions
+1 -1
View File
@@ -81,5 +81,5 @@ The directives should also be updated through:
The ordering of the plugins is specified by how the arey ordered in the slice `directives`.
Then you can just compile CoreDNS with `go build` to have the binary generated with the␍ plugins you
Then you can just compile CoreDNS with `go build` to have the binary generated with the plugins you
selected.
+3 -6
View File
@@ -70,7 +70,7 @@ func setupWhoami(c *caddy.Controller) error {
~~~
We use the `*caddy.Controller` to receive tokens from the Corefile and act upon them. Here we only
check if there is nothing specified after the token `whoami`. If you need to do more there are
`c.Val()`, `c.Args()` and [friends](https://godoc.org/github.com/caddyserver/caddy/caddyfile#Dispenser).
`c.Val()`, `c.Args()` and [friends](https://godoc.org/github.com/coredns/caddy/caddyfile#Dispenser).
The full `setup.go` for *whoami* is [here](https://github.com/miekg/coredns/blob/master/plugin/whoami/setup.go).
@@ -207,11 +207,8 @@ The `-dns.port` will start CoreDNS on port 1053, so we don't need to run as root
CoreDNS will output the following:
~~~ txt
.:1053
______ ____ _ _______
/ ____/___ ________ / __ \/ | / / ___/ ~ CoreDNS-1.6.4
/ / / __ \/ ___/ _ \/ / / / |/ /\__ \ ~ linux/amd64, go1.13.1, b139ba3
/ /___/ /_/ / / / __/ /_/ / /| /___/ /
\____/\____/_/ \___/_____/_/ |_//____/
CoreDNS-1.6.4
linux/amd64, go1.13.1, b139ba3
~~~
The `.:1053` indicates it has parsed our Corefile and is listening on port 1053 for queries for
the root `.` zone and below.
+2 -2
View File
@@ -5,8 +5,8 @@ weight = 10
tags = [ "plugin" , "on" ]
categories = [ "plugin", "external" ]
date = "2018-01-22T07:53:19+01:00"
repo = "https://github.com/mholt/caddy"
home = "https://caddyserver.com/docs/on"
repo = "https://github.com/coredns/caddy"
home = "https://github.com/coredns/caddy/onevent"
default = "yes"
+++