templates/wordpress/Caddyfile
2026-11-28 15:28:02 +02:00

13 lines
325 B
Caddyfile

# HTTPS in front of WordPress. Caddy gets and renews the certificate for $DOMAIN on its own.
{$DOMAIN} {
encode zstd gzip
request_body {
max_size 64MB
}
reverse_proxy wordpress:80
}
# www.example goes to the domain without www. Needs a DNS record for www too.
www.{$DOMAIN} {
redir https://{$DOMAIN}{uri} permanent
}