bert: Add handle_errors clause to all sites

It looks like this was CLOSED WONTFIX: How can we _possibly_ know that
upon an error, the developer might want us to send an indication of that
error??!!1! Snark aside (mine and his): it looks like there's not a
great way to enable sane error behavior globally :/

https://caddy.community/t/handling-errors-globally/17174/2

In the future, I should probably make this a snippet or something.
This commit is contained in:
Chandler Swift 2024-11-12 01:56:24 -06:00
parent 542b9dd68d
commit 9e3c4ee13e
Signed by: chandlerswift
GPG key ID: A851D929D52FB93F
6 changed files with 24 additions and 0 deletions

View file

@ -6,6 +6,10 @@
encode zstd gzip
file_server
root * /srv/www/harborpaperco.com
handle_errors {
respond "{err.status_code} {err.status_text}"
}
'';
};
# services.caddy.virtualHosts."pureserendipityweddings.com" = {