Blog/Caddyfile

13 lines
224 B
Caddyfile
Raw Normal View History

2021-12-30 21:12:13 +01:00
:8080 {
2021-12-23 09:55:33 +01:00
root * /usr/share/caddy
file_server
encode gzip zstd
handle_errors {
@404 {
expression {http.error.status_code} == 404
}
rewrite @404 /404.html
file_server
}
}