Documentation ¶
Overview ¶
Package main is the entry point of the Caddy application. Most of Caddy's functionality is provided through modules, which can be plugged in by adding their import below.
There is no need to modify the Caddy source code to customize your builds. You can easily build a custom Caddy with these simple steps:
- Copy this file (main.go) into a new folder
- Edit the imports below to include the modules you want plugged in
- Run `go mod init caddy`
- Run `go install` or `go build` - you now have a custom binary!
Click to show internal directories.
Click to hide internal directories.