[ C O D E ]
28.09.2026 · 6 min
TITLE..........Moving from nginx to Caddy
DATE..........28.09.2026
TAGS..........caddy, tls, nginx
SIZE..........6 min

Automatic certificates, sane defaults, readable config. The migration took one evening.

[ /etc/caddy/Caddyfile ]
yaml · 11L
1yearone.cloud {
2 encode zstd gzip
3 reverse_proxy wordpress:80
4 header {
5 Strict-Transport-Security "max-age=31536000"
6 -Server
7 }
8 log {
9 output file /var/log/caddy/yearone.log
10 }
11}
-- READ ONLY -- utf-8 · yaml · 11 lines
(c) 2026 yearone.cloud · root@yearone.cloud