2024-06-01 22:41:31 +02:00
|
|
|
{
|
|
|
|
log {
|
|
|
|
format json {
|
|
|
|
time_format rfc3339
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-06-18 20:03:08 +02:00
|
|
|
: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
|
|
|
|
}
|
2024-06-01 22:41:31 +02:00
|
|
|
|
2023-06-18 20:03:08 +02:00
|
|
|
log
|
|
|
|
metrics /metrics
|
|
|
|
}
|