2021-11-08 19:15:57 -06:00
|
|
|
# vim: ft=caddyfile
|
|
|
|
|
|
|
|
{
|
|
|
|
grace_period 60s
|
|
|
|
import email
|
|
|
|
#acme_ca "https://acme-staging-v02.api.letsencrypt.org/directory"
|
|
|
|
}
|
|
|
|
|
|
|
|
(basicerrors) {
|
|
|
|
handle_errors {
|
|
|
|
templates
|
|
|
|
rewrite * /index.html
|
|
|
|
root * /etc/caddy/errors
|
|
|
|
file_server
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
(hsts) {
|
|
|
|
header Strict-Transport-Security max-age=31536000
|
|
|
|
}
|
|
|
|
|
|
|
|
(log) {
|
|
|
|
log {
|
2021-12-17 21:05:20 -06:00
|
|
|
output file /var/log/caddy/access.log {
|
|
|
|
roll_size 1GiB
|
|
|
|
roll_keep 5
|
|
|
|
roll_keep_for 168h
|
|
|
|
}
|
2021-11-08 19:15:57 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
import conf.d/*
|