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
Raw Permalink Normal View History

2022-09-29 15:21:05 -05:00
{
admin "unix//run/caddy/admin.socket"
}
2022-10-30 10:55:02 -05:00
http:// {
2022-09-29 15:21:05 -05:00
root * /srv/http
file_server {
browse /etc/caddy/browse_template.html
hide \.*
}
2022-11-22 14:35:47 -06:00
templates
handle_errors {
@404 {
expression {http.error.status_code} == 404
}
rewrite @404 /404.html
}
2022-09-29 15:21:05 -05:00
}