Vigiar
1
0
Derivar
Você já tinha feito uma derivação do repositório templates, anteriormente
0
templates/static-site/Caddyfile
2026-11-28 15:28:05 +02:00

19 linhas
438 B
Caddyfile

# Serves public/ with HTTPS. Caddy gets and renews the certificate for $DOMAIN on its own.
{$DOMAIN} {
encode zstd gzip
root * /srv
file_server
handle_errors {
rewrite * /404.html
file_server
}
header {
X-Content-Type-Options nosniff
Referrer-Policy strict-origin-when-cross-origin
}
}
# www.example goes to the domain without www. Needs a DNS record for www too.
www.{$DOMAIN} {
redir https://{$DOMAIN}{uri} permanent
}