Blog/Caddyfile

19 lines
241 B
Caddyfile
Raw Normal View History

2022-01-11 10:25:39 +01:00
{
2022-01-11 10:32:47 +01:00
debug
admin off
2022-01-11 10:25:39 +01:00
auto_https off
}
:8080 {
root * /usr/share/caddy
file_server
encode gzip zstd
handle_errors {
@404 {
expression {http.error.status_code} == 404
}
rewrite @404 /404.html
file_server
}
}