2021-12-26 21:35:24 +01:00
|
|
|
# This sample Caddyfile will run the server on localhost.
|
2021-12-26 21:24:09 +01:00
|
|
|
localhost {
|
|
|
|
templates
|
|
|
|
encode zstd gzip
|
2021-12-30 21:11:35 +01:00
|
|
|
root * ./ # Edit me!
|
2021-12-26 21:24:09 +01:00
|
|
|
file_server
|
|
|
|
rewrite /blog/* blog.html
|
|
|
|
handle_errors {
|
|
|
|
respond "{http.error.status_code} {http.error.status_text}"
|
|
|
|
}
|
|
|
|
}
|