* Make CoreDNS a server type plugin for Caddy Remove code we don't need and port all middleware over. Fix all tests and rework the documentation. Also make `go generate` build a caddy binary which we then copy into our directory. This means `go build`-builds remain working as-is. And new etc instances in each etcd test for better isolation. Fix more tests and rework test.Server with the newer support Caddy offers. Fix Makefile to support new mode of operation.
18 lines
290 B
Go
18 lines
290 B
Go
package main
|
|
|
|
import (
|
|
"flag"
|
|
|
|
"github.com/mholt/caddy"
|
|
"github.com/mholt/caddy/caddy/caddymain"
|
|
)
|
|
|
|
//go:generate go run plugin_generate.go
|
|
|
|
func main() {
|
|
// Set some flags/options specific for CoreDNS.
|
|
flag.Set("type", "dns")
|
|
caddy.DefaultConfigFile = "Corefile"
|
|
|
|
caddymain.Run()
|
|
}
|