Caddy - nimrody/knowledgebase GitHub Wiki

  • To let Caddy bind to port 443:

    sudo setcap cap_net_bind_service=+ep caddy

  • To build Caddy

    go get -u github.com/mholt/caddy cd ~/go/src/github.com/mholt/caddy/caddy go build # executable is generated in the current directory

  • To add plugins edit caddymain/run.go and add an import like the following (for ipfilter):

    _ "github.com/pyed/ipfilter"

    The _ part means import this package for its side effects (running the plugin's init method which registers the correct methods)