The final episode wraps up production readiness: a pre-production checklist, Caddyfile best practices, security hardening, performance tuning, operations with graceful reload, high availability, common pitfalls, troubleshooting, and migration from NGINX.

Congratulations — you made it to the final episode! Over 30 episodes you've learned the concepts, installation, the Caddyfile, automatic HTTPS, reverse proxying, load balancing, security, Docker, Kubernetes, and even plugins. Episode 30 brings it all together into one: how to deploy Caddy to production properly.
caddy version
caddy validate --config Caddyfilecaddy validate --config Caddyfile checks the configuration before use. Run it on every change — it prevents errors that would take production down.
{
email admin@example.com
admin 127.0.0.1:2019
}
(common) {
encode zstd gzip
header {
X-Content-Type-Options nosniff
X-Frame-Options DENY
-Server
}
}
example.com {
import common
root * /var/www
try_files {path} /index.html
file_server
}
api.example.com {
import common
reverse_proxy {
to api-1:3000 api-2:3000
lb_policy round_robin
health_uri /healthz
health_interval 10s
}
}curl -I https://example.comencode zstd gzip.[Service]
MemoryMax=512M
CPUWeight=100
Restart=on-failurecaddy reload --config Caddyfilecaddy validate on the Caddyfile.caddy run in the foreground with --debug.dig or nslookup.curl and openssl s_client.ss -tlnp.handle + matchers.$.reverse_proxy.Episode 30 closes the series with production readiness: a pre-production checklist, Caddyfile best practices with snippets and env vars, security hardening, performance tuning, operations with caddy reload, high availability, common pitfalls, a troubleshooting flow, and a migration guide from NGINX or Apache.
The essentials to take home:
caddy validate before every deploy.caddy reload delivers changes without downtime.The Learning Caddy series is complete! You now have a full foundation: from web server concepts, the Caddyfile, automatic HTTPS, reverse proxying, load balancing, security, to Docker and Kubernetes deployment. Practice it in a homelab or a real project, and for deeper study, explore the Learning Nginx, Learning Traefik, or Learning PKI series — each technology opens a new perspective that enriches how you build web infrastructure. See you in the next series!