From ad87ba9dfed5a69276f1fb303b1addd10979f44c Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 30 Dec 2024 18:28:18 +0100 Subject: linde: handle errors with custom response --- system/linde.nix | 3 +++ 1 file changed, 3 insertions(+) (limited to 'system/linde.nix') 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}" + } ''; }; }; -- cgit 1.4.1