caddy/Caddyfile

22 lines
292 B
Caddyfile
Raw Permalink Normal View History

2021-08-01 16:59:16 -05:00
# vim: ft=caddyfile
{
2022-01-30 17:31:09 -06:00
grace_period 30s
2021-08-01 16:59:16 -05:00
import email
}
(basicerrors) {
handle_errors {
2021-08-21 17:18:23 -05:00
templates
rewrite * /index.html
root * /etc/caddy/errors
2021-08-01 16:59:16 -05:00
file_server
}
}
2021-09-04 16:47:16 -05:00
(hsts) {
header Strict-Transport-Security max-age=31536000
}
2021-08-01 16:59:16 -05:00
import conf.d/*