Caddyfile generator
Pick a site type and options → a commented Caddyfile with automatic HTTPS via Let's Encrypt. For local dev use :8080 as the site address (HTTP only). Prefer nginx?We have that too.
~~~
Caddyfile
~~~
About this tool
Caddy obtains and renews TLS certificates automatically — no certbot cron jobs. Point DNS at your server, run Caddy with this Caddyfile, and HTTPS works.
For localhost development, bind to :8080 instead of a domain to skip certificate provisioning.
~~~
Read more
~~~
Free books and courses
Get my programming books and courses as PDF and EPUB files.
Get the download library →