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

3 files changed, 26 insertions(+), 8 deletions(-)

jump to
M hive.nixhive.nix
@@ -37,5 +37,10 @@ (builtins.getFlake (toString <golink>)).nixosModules.default
./packages/modules/nixos/laminar.nix ./system/linde.nix ]; + nixpkgs.overlays = [ + (final: prev: { + searchix = (builtins.getFlake (toString <searchix>)).packages.${prev.system}.default; + }) + ]; }; }
M npins/sources.jsonnpins/sources.json
@@ -143,14 +143,16 @@ },
"searchix": { "type": "Git", "repository": { - "type": "Git", - "url": "https://git.alanpearce.eu/searchix" + "type": "Forgejo", + "server": "https://codeberg.org/", + "owner": "alanpearce", + "repo": "searchix" }, "branch": "main", "submodules": false, - "revision": "807a691936113eecb43b6a64e2f4524a68a9a0d1", - "url": null, - "hash": "0a4ii5qpikxs43qmdqy6z1msh1db1vfrhxxi4y20bcz0vbkr728j" + "revision": "4eeb8ef07a7d3277735201372bdc450c9062cfda", + "url": "https://codeberg.org/alanpearce/searchix/archive/4eeb8ef07a7d3277735201372bdc450c9062cfda.tar.gz", + "hash": "0g3x8d5210sg3bfy2ld9bi0s3cdmkwzm33dkhz25mbg4k1iwrglw" }, "srvos": { "type": "Git",
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 {