summary refs log tree commit diff stats
path: root/system/linde.nix
diff options
context:
space:
mode:
authorAlan Pearce2024-12-30 18:28:18 +0100
committerAlan Pearce2024-12-30 18:28:18 +0100
commitad87ba9dfed5a69276f1fb303b1addd10979f44c (patch)
treec362b8452080cba3d9d32c9b112f90c334892ada /system/linde.nix
parent3756f140002a455b09f694c833c8ce99e55a0241 (diff)
downloadnixfiles-ad87ba9dfed5a69276f1fb303b1addd10979f44c.tar.lz
nixfiles-ad87ba9dfed5a69276f1fb303b1addd10979f44c.tar.zst
nixfiles-ad87ba9dfed5a69276f1fb303b1addd10979f44c.zip
linde: handle errors with custom response
Diffstat (limited to 'system/linde.nix')
-rw-r--r--system/linde.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/system/linde.nix b/system/linde.nix
index 49dad5b5..0cb045e5 100644
--- a/system/linde.nix
+++ b/system/linde.nix
@@ -795,6 +795,9 @@ in
               encode zstd gzip
               ${security-headers {}}
               reverse_proxy ${srv.address}:${toString srv.port}
+              handle_errors {
+                respond "{err.status_code} {err.status_text}"
+              }
             '';
           };
       };