Open tufu9441 opened 4 years ago
Same here...
package main
import (
"github.com/caddyserver/caddy/caddy/caddymain"
_ "github.com/nicolasazrak/caddy-cache"
_ "github.com/captncraig/cors"
//_ ""
)
func main() {
// optional: disable telemetry
caddymain.EnableTelemetry = false
caddymain.Run()
}
Cache Plugin is there, cors plugin missing.
May be relevant difference:
Is this plugin compatible with armv7 architectures? (RaspberryPi)
This may be a tad late for @tufu9441 but I experimented a tad and found that using
_ "github.com/captncraig/cors/caddy"
worked for me, that gets it on teh list for me
this is fixed by @Silver-Golden comment, can be closed afaik
When I tried to build with the cors plugin by following steps (from https://github.com/caddyserver/caddy/tree/v1#install), the cors plugin cannot be compiled in:
main.go
file as:Run
go mod init caddy
Run
go get -u github.com/caddyserver/caddy
Run
go build
After the Caddy binary generated, I ran
./caddy -plugins
and didn’t see thehttp.cors
plugin listed, however thehttp.forwardproxy
plugin can be seen.