all repos — nixfiles @ 1394b5f1ba0a9051ddc9bfc7e6714b75fae0773a

System and user configuration, managed by nix and home-manager

linde: enable custom error pages for searchix

Alan Pearce
commit

1394b5f1ba0a9051ddc9bfc7e6714b75fae0773a

parent

16f0177c723b27c97c59e196fbd42cb599d768a7

1 file changed, 14 insertions(+), 3 deletions(-)

changed files
M system/linde.nixsystem/linde.nix
@@ -554,9 +554,20 @@ };
"searchix.alanpearce.eu" = { useACMEHost = "alanpearce.eu"; extraConfig = '' - reverse_proxy localhost:${toString config.services.searchix.settings.web.port} { - health_uri /health - health_status 2xx + root ${pkgs.searchix}/lib/searchix + handle /static/* { + file_server + } + handle_errors { + rewrite * /error.html + templates + file_server + } + handle { + reverse_proxy localhost:${toString config.services.searchix.settings.web.port} { + health_uri /health + health_status 2xx + } } encode zstd gzip { match {