homepage/Caddyfile
2023-06-18 20:03:08 +02:00

18 lines
258 B
Caddyfile

:80 {
root * /srv
file_server {
hide Caddyfile
hide .git .gitignore Caddyfile *.md
}
handle_errors {
@404 {
expression {http.error.status_code} == 404
}
rewrite @404 /404.html
file_server
}
log
metrics /metrics
}