add caddy file

This commit is contained in:
OCram85 2021-12-23 09:55:33 +01:00
parent aac66e01fc
commit 00186ad40d

14
Caddyfile Normal file
View File

@ -0,0 +1,14 @@
:8088 {
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
}
}