Blog/Caddyfile
2021-12-30 21:12:13 +01:00

15 lines
258 B
Caddyfile

:8080 {
root * /usr/share/caddy
file_server
encode gzip zstd
try_files {path}.html {path} /
handle_errors {
@404 {
expression {http.error.status_code} == 404
}
rewrite @404 /404.html
file_server
}
}