13 lines
325 B
Caddyfile
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
|
|
}
|