Caddy simplifies your infrastructure. It takes care of TLS certificate renewals, OCSP stapling, static file serving, reverse proxying, Kubernetes ingress, and more.
Its modular architecture means you can do more with a single, static binary that compiles for any platform.
Caddy runs great in containers because it has no dependencies—not even libc. Run Caddy practically anywhere.
config
{
auto_https off
}
:3000 {
root * /xxx
route /api/* {
uri strip_prefix /api
reverse_proxy {
to localhost:2000
}
}
file_server
}
Thank chatGPT
Ref: