homepage/Caddyfile

26 lines
339 B
Caddyfile

{
log {
format json {
time_format rfc3339
}
}
}
: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
}