From 5975cfd348f209ab5fde1f10f09368223a68fd6f Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sat, 12 Oct 2024 12:12:41 +0200 Subject: [PATCH] fuuko/paperless: Add manual scan endpoint --- machines/fuuko/services/paperless.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/machines/fuuko/services/paperless.nix b/machines/fuuko/services/paperless.nix index 4ae82f8..493cd88 100644 --- a/machines/fuuko/services/paperless.nix +++ b/machines/fuuko/services/paperless.nix @@ -53,6 +53,17 @@ ''; }; "/static".root = "${config.services.paperless.package}/lib/paperless-ngx"; + "/manual-scan/" = { + alias = "/var/lib/scans/manual/"; + + extraConfig = '' + autoindex on; + + allow 10.80.1.0/24; + allow 2001:470:73b9:1::/64; + deny all; + ''; + }; }; }; @@ -74,6 +85,7 @@ "d /var/lib/scans 0555 scan root -" "d /var/lib/scans/paperless 0770 scan paperless -" "d /var/lib/scans/paperless/double-sided 0770 scan paperless -" + "d /var/lib/scans/manual 0750 scan nginx 7d" "L /var/lib/paperless/consume/ftp - - - - /var/lib/scans/paperless" ];