YEARONE
..
debug.com was the last thing he opened
<< home
[ CODE ]
[ TOOLS ]
[ MUSIC ]
[ PICTURES ]
[ 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
1
yearone
.
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
[copy]
[wrap]
yearone.cloud { encode zstd gzip reverse_proxy wordpress:80 header { Strict-Transport-Security "max-age=31536000" -Server } log { output file /var/log/caddy/yearone.log } }
<< back to code
-= eof =-
(c) 2026 yearone.cloud · root@yearone.cloud