Updated my Caddy building routines for Caddy v1.0.0 and almost all plugins I normally install were built with exception of Azure & Restic plugins. Guess they’re not ready for the new module based setup in Caddy v1.0.0 ?
failed with restic
./caddybuilder.sh install restic
Using GPATH : /root/golang/packages
go: finding github.com/mholt/caddy/caddyhttp/httpserver latest
go: finding github.com/mholt/caddy/caddyhttp latest
go: finding github.com/prometheus/client_golang/prometheus latest
go: finding github.com/prometheus/client_golang/prometheus/promhttp latest
go: finding github.com/miolini/datacounter latest
go: finding goji.io/middleware latest
go: finding goji.io/pat latest
# github.com/restic/caddy
/root/golang/packages/pkg/mod/github.com/restic/caddy@v0.2.1/setup.go:19:16: undefined: restserver.Server
/root/golang/packages/pkg/mod/github.com/restic/caddy@v0.2.1/setup.go:42:19: undefined: restserver.NewHandler
failed with azure
./caddybuilder.sh install azure
Using GPATH : /root/golang/packages
go: finding github.com/caddyserver/dnsproviders/azure latest
go: finding github.com/mholt/caddy/caddytls latest
go: finding github.com/go-acme/lego/providers/dns/azure latest
go: finding github.com/go-acme/lego/providers/dns latest
go: finding github.com/go-acme/lego/providers latest
go: finding github.com/Azure/azure-sdk-for-go/services/dns/mgmt/2017-09-01/dns latest
go: finding github.com/Azure/go-autorest/autorest/azure latest
go: finding github.com/Azure/azure-sdk-for-go/services/dns/mgmt/2017-09-01 latest
go: finding github.com/Azure/azure-sdk-for-go/services/dns/mgmt latest
go: finding github.com/Azure/azure-sdk-for-go/services/dns latest
go: finding github.com/Azure/azure-sdk-for-go/services latest
# github.com/Azure/azure-sdk-for-go/services/dns/mgmt/2017-09-01/dns
/root/golang/packages/pkg/mod/github.com/!azure/azure-sdk-for-go@v27.3.0+incompatible/services/dns/mgmt/2017-09-01/dns/models.go:852:20: future.Done undefined (type *ZonesDeleteFuture has no field or method Done)
Rest installed fine it seems so far
./caddybuilder.sh install pdns digitalocean upload proxyprotocol expires git forwardproxy minify gopkg grpc dnsmadeeasy authz datadog nobots route53 locale cache realip ipfilter dyn namecheap webdav mailout cors filter awslambda prometheus ns1 awses linode vultr reauth cloudflare cgi googlecloud godaddy ovh ratelimit rackspace login jwt geoip s3browser
Rebuilding caddy binary [SUCCESS]
Caddy is Running .. Stopping process [SUCCESS]
Copying caddy binary to /root/golang/packages/bin [SUCCESS]
Copying caddy binary to /usr/local/bin/caddy [SUCCESS]
Rebuilding caddy binary GCC optimized [SUCCESS]
Copying caddy GCC optimized binary to /usr/local/bin/caddy-gcc8 [SUCCESS]
Rebuilding caddy binary Clang optimized [SUCCESS]
Copying caddy Clang optimized binary to /usr/local/bin/caddy-clang5 [SUCCESS]
-rwxr-xr-x 1 root root 35M Apr 26 03:18 /usr/local/bin/caddy
-rwxr-xr-x 1 root root 35M Apr 26 03:19 /usr/local/bin/caddy-clang5
-rwxr-xr-x 1 root root 15M Apr 26 03:06 /usr/local/bin/caddy-gcc7
-rwxr-xr-x 1 root root 35M Apr 26 03:18 /usr/local/bin/caddy-gcc8
-rwxr-xr-x 1 root root 31M Feb 16 09:43 /usr/local/bin/caddy.offical
check custom_gomodule.go
package main
import (
"github.com/mholt/caddy/caddy/caddymain"
// plug in plugins here, for example
_ "blitznote.com/src/caddy.upload"
_ "github.com/BTBurke/caddy-jwt"
_ "github.com/SchumacherFM/mailout"
_ "github.com/Xumeiquer/nobots"
_ "github.com/abiosoft/caddy-git"
_ "github.com/caddyserver/dnsproviders/cloudflare"
_ "github.com/caddyserver/dnsproviders/digitalocean"
_ "github.com/caddyserver/dnsproviders/dnsmadeeasy"
_ "github.com/caddyserver/dnsproviders/dyn"
_ "github.com/caddyserver/dnsproviders/godaddy"
_ "github.com/caddyserver/dnsproviders/googlecloud"
_ "github.com/caddyserver/dnsproviders/linode"
_ "github.com/caddyserver/dnsproviders/namecheap"
_ "github.com/caddyserver/dnsproviders/ns1"
_ "github.com/caddyserver/dnsproviders/ovh"
_ "github.com/caddyserver/dnsproviders/pdns"
_ "github.com/caddyserver/dnsproviders/rackspace"
_ "github.com/caddyserver/dnsproviders/route53"
_ "github.com/caddyserver/dnsproviders/vultr"
_ "github.com/caddyserver/forwardproxy"
_ "github.com/captncraig/caddy-realip"
_ "github.com/captncraig/cors/caddy"
_ "github.com/casbin/caddy-authz"
_ "github.com/coopernurse/caddy-awslambda"
_ "github.com/echocat/caddy-filter"
_ "github.com/epicagency/caddy-expires"
_ "github.com/freman/caddy-reauth"
_ "github.com/hacdias/caddy-minify"
_ "github.com/hacdias/caddy-webdav"
_ "github.com/hiphref/caddy-geoip"
_ "github.com/jung-kurt/caddy-cgi"
_ "github.com/mastercactapus/caddy-proxyprotocol"
_ "github.com/miekg/caddy-prometheus"
_ "github.com/miquella/caddy-awses"
_ "github.com/nicolasazrak/caddy-cache"
_ "github.com/payintech/caddy-datadog"
_ "github.com/pieterlouw/caddy-grpc"
_ "github.com/pyed/ipfilter"
_ "github.com/simia-tech/caddy-locale"
_ "github.com/tarent/loginsrv/caddy"
_ "github.com/techknowlogick/caddy-s3browser"
_ "github.com/xuqingfeng/caddy-rate-limit"
_ "github.com/zikes/gopkg"
)
func main() {
// optional: disable telemetry
caddymain.EnableTelemetry = false
caddymain.Run()
}
caddy -version
Caddy v1.0.0 (h1:KI6RPGih2GFzWRPG8s9clKK28Ns4ZlVMKR/v7mxq6+c=)
caddy -plugins
Server types:
http
Caddyfile loaders:
short
flag
default
Other plugins:
http.authz
http.awses
http.awslambda
http.basicauth
http.bind
http.browse
http.cache
http.cgi
http.cors
http.datadog
http.errors
http.expires
http.expvar
http.ext
http.fastcgi
http.filter
http.forwardproxy
http.geoip
http.git
http.gopkg
http.grpc
http.gzip
http.header
http.index
http.internal
http.ipfilter
http.jwt
http.limits
http.locale
http.log
http.login
http.mailout
http.markdown
http.mime
http.minify
http.nobots
http.pprof
http.prometheus
http.proxy
http.proxyprotocol
http.push
http.ratelimit
http.realip
http.reauth
http.redir
http.request_id
http.rewrite
http.root
http.s3browser
http.secrets
http.status
http.templates
http.timeouts
http.upload
http.webdav
http.websocket
on
tls
tls.cluster.file
tls.dns.cloudflare
tls.dns.digitalocean
tls.dns.dnsmadeeasy
tls.dns.dyn
tls.dns.godaddy
tls.dns.googlecloud
tls.dns.linode
tls.dns.namecheap
tls.dns.ns1
tls.dns.ovh
tls.dns.powerdns
tls.dns.rackspace
tls.dns.route53
tls.dns.vultr
Testing time