The term Caddyfile describes a text file that changes how an instance of the Caddy web server works.
Definition:
The Caddyfile is the configuration file of the caddy web server.
It is similar in purpose to httpd.conf
or nginx.conf
.
The Caddyfile file can be named anything, but by default, Caddy will look for a file called Caddyfile in the current directory.
Example Usage:
example.com {
root /www/example.com
}
sub.example.com {
root /www/sub.example.com
gzip
log ../access.log
}