fuuko/paperless: Add manual scan endpoint

This commit is contained in:
Simon Bruder 2024-10-12 12:12:41 +02:00
parent 718e647cbd
commit 5975cfd348
Signed by: simon
GPG key ID: 347FF8699CDA0776

View file

@ -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"
];