add Caddyfile for testing

This commit is contained in:
Asmir A 2023-11-15 13:21:52 +01:00
parent fa5dd946de
commit 2c830905d1
Signed by: asmir
GPG Key ID: 020C42B7A9ABA3E2

18
Caddyfile Normal file
View File

@ -0,0 +1,18 @@
{
auto_https off
}
:8080 {
root * ./result/public
encode gzip
file_server
# redirect to your custom 404 page
handle_errors {
@404 {
expression {http.error.status_code} == 404
}
rewrite @404 /404.html
file_server
}
}