caddy/Caddyfile
BBaoVanC 58ff080106 Remove log
I never ended up reading the server side logging. Even with `goaccess`,
there was too much noise from bots and crawlers.
2022-05-20 23:34:56 -05:00

44 lines
858 B
Caddyfile

# vim: ft=caddyfile
{
grace_period 30s
import email
}
#{
# servers :443 {
# protocol {
# experimental_http3
# }
# }
#}
(basicerrors) {
handle_errors {
#respond "{http.error.status_code} {http.error.status_text}"
templates
rewrite * /index.html
root * /etc/caddy/errors
file_server
}
}
(hsts) {
header Strict-Transport-Security max-age=31536000
}
(matrix-well-known) {
handle_path /.well-known/matrix/* {
header Access-Control-Allow-Origin "*"
header Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS"
header Access-Control-Allow-Headers "Origin, X-Requested-With, Content-Type, Accept, Authorization"
rewrite * {path}.json
root * /etc/caddy/matrix_well_known
file_server
}
}
import conf.d/*