From 634fac70f0858c473eed18ab45cd566274b07d78 Mon Sep 17 00:00:00 2001 From: xqtc161 Date: Fri, 19 Apr 2024 18:21:56 +0200 Subject: [PATCH] Added http error handling to caddyfile --- hosts/x86_64-linux/beleth/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hosts/x86_64-linux/beleth/default.nix b/hosts/x86_64-linux/beleth/default.nix index f23b2d1..141b396 100644 --- a/hosts/x86_64-linux/beleth/default.nix +++ b/hosts/x86_64-linux/beleth/default.nix @@ -24,6 +24,10 @@ with lib; { configFile = pkgs.writeText "Caddyfile" '' heroin.trade { root * /var/www/website/public/ + handle_errors { + rewrite * /404.html + file_server +} file_server } syncthing.heroin.trade {