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:
parent
542b9dd68d
commit
9e3c4ee13e
|
@ -4,6 +4,10 @@
|
||||||
encode zstd gzip
|
encode zstd gzip
|
||||||
file_server
|
file_server
|
||||||
root * /srv/www/files.chandlerswift.com
|
root * /srv/www/files.chandlerswift.com
|
||||||
|
|
||||||
|
handle_errors {
|
||||||
|
respond "{err.status_code} {err.status_text}"
|
||||||
|
}
|
||||||
'';
|
'';
|
||||||
systemd.tmpfiles.settings."10-files-chandlerswift-com" = {
|
systemd.tmpfiles.settings."10-files-chandlerswift-com" = {
|
||||||
"/srv/www/files.chandlerswift.com" = {
|
"/srv/www/files.chandlerswift.com" = {
|
||||||
|
|
|
@ -6,6 +6,10 @@
|
||||||
encode zstd gzip
|
encode zstd gzip
|
||||||
file_server
|
file_server
|
||||||
root * /srv/www/harborpaperco.com
|
root * /srv/www/harborpaperco.com
|
||||||
|
|
||||||
|
handle_errors {
|
||||||
|
respond "{err.status_code} {err.status_text}"
|
||||||
|
}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
# services.caddy.virtualHosts."pureserendipityweddings.com" = {
|
# services.caddy.virtualHosts."pureserendipityweddings.com" = {
|
||||||
|
|
|
@ -16,6 +16,10 @@
|
||||||
# it sorta feels wrong to do this without a `/sheets` suffix.
|
# it sorta feels wrong to do this without a `/sheets` suffix.
|
||||||
root /mnt/bigbird-public
|
root /mnt/bigbird-public
|
||||||
}
|
}
|
||||||
|
|
||||||
|
handle_errors {
|
||||||
|
respond "{err.status_code} {err.status_text}"
|
||||||
|
}
|
||||||
'';
|
'';
|
||||||
systemd.tmpfiles.settings."10-home-chandlerswift-com" = {
|
systemd.tmpfiles.settings."10-home-chandlerswift-com" = {
|
||||||
"/srv/www/home.chandlerswift.com" = {
|
"/srv/www/home.chandlerswift.com" = {
|
||||||
|
|
|
@ -5,6 +5,10 @@
|
||||||
file_server
|
file_server
|
||||||
root * /srv/www/katherineandchandler.com
|
root * /srv/www/katherineandchandler.com
|
||||||
# hide .git # ???
|
# hide .git # ???
|
||||||
|
|
||||||
|
handle_errors {
|
||||||
|
respond "{err.status_code} {err.status_text}"
|
||||||
|
}
|
||||||
'';
|
'';
|
||||||
systemd.tmpfiles.settings."10-katherineandchandler-com" = {
|
systemd.tmpfiles.settings."10-katherineandchandler-com" = {
|
||||||
"/srv/www/katherineandchandler.com" = {
|
"/srv/www/katherineandchandler.com" = {
|
||||||
|
|
|
@ -5,6 +5,10 @@
|
||||||
file_server
|
file_server
|
||||||
root * /srv/www/maps.chandlerswift.com
|
root * /srv/www/maps.chandlerswift.com
|
||||||
# hide .git # ???
|
# hide .git # ???
|
||||||
|
|
||||||
|
handle_errors {
|
||||||
|
respond "{err.status_code} {err.status_text}"
|
||||||
|
}
|
||||||
'';
|
'';
|
||||||
systemd.tmpfiles.settings."10-maps-chandlerswift-com" = {
|
systemd.tmpfiles.settings."10-maps-chandlerswift-com" = {
|
||||||
"/srv/www/maps.chandlerswift.com" = {
|
"/srv/www/maps.chandlerswift.com" = {
|
||||||
|
|
|
@ -4,6 +4,10 @@
|
||||||
encode zstd gzip
|
encode zstd gzip
|
||||||
file_server
|
file_server
|
||||||
root * /srv/www/swiftgang.net
|
root * /srv/www/swiftgang.net
|
||||||
|
|
||||||
|
handle_errors {
|
||||||
|
respond "{err.status_code} {err.status_text}"
|
||||||
|
}
|
||||||
'';
|
'';
|
||||||
systemd.tmpfiles.settings."10-swiftgang-net" = {
|
systemd.tmpfiles.settings."10-swiftgang-net" = {
|
||||||
"/srv/www/swiftgang.net" = {
|
"/srv/www/swiftgang.net" = {
|
||||||
|
|
Loading…
Reference in a new issue