diff options
author | Alan Pearce | 2024-12-30 18:28:18 +0100 |
---|---|---|
committer | Alan Pearce | 2024-12-30 18:28:18 +0100 |
commit | ad87ba9dfed5a69276f1fb303b1addd10979f44c (patch) | |
tree | c362b8452080cba3d9d32c9b112f90c334892ada /system/linde.nix | |
parent | 3756f140002a455b09f694c833c8ce99e55a0241 (diff) | |
download | nixfiles-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.nix | 3 |
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}" + } ''; }; }; |