From 9db96ee8394eb02b516efbea98375f69d36e2cb4 Mon Sep 17 00:00:00 2001 From: Flakebi Date: Wed, 28 Feb 2024 09:12:48 +0100 Subject: paperless: fix uploading files via local folder The consumer service needs to be in the same namespace as the task-queue, otherwise they cannot see each others temporary files. Same as for web uploading. See also the discussion here: https://github.com/paperless-ngx/paperless-ngx/discussions/5606 --- nixos/modules/services/misc/paperless.nix | 3 +++ 1 file changed, 3 insertions(+) (limited to 'nixos') diff --git a/nixos/modules/services/misc/paperless.nix b/nixos/modules/services/misc/paperless.nix index 1256d8315c8b7..ab042e4b6ee2a 100644 --- a/nixos/modules/services/misc/paperless.nix +++ b/nixos/modules/services/misc/paperless.nix @@ -307,6 +307,9 @@ in Restart = "on-failure"; }; environment = env; + # Allow the consumer to access the private /tmp directory of the server. + # This is required to support consuming files via a local folder. + unitConfig.JoinsNamespaceOf = "paperless-task-queue.service"; }; systemd.services.paperless-web = { -- cgit 1.4.1