This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/host/layer/public-webserver/caddy/Caddyfile

21 lines
295 B
Caddyfile
Executable file

{
admin "unix//run/caddy/admin.socket"
}
http:// {
root * /srv/http
file_server {
browse /etc/caddy/browse_template.html
hide \.*
}
templates
handle_errors {
@404 {
expression {http.error.status_code} == 404
}
rewrite @404 /404.html
}
}