diff options
author | Flakebi <flakebi@t-online.de> | 2024-02-28 09:12:48 +0100 |
---|---|---|
committer | Flakebi <flakebi@t-online.de> | 2024-02-28 09:14:48 +0100 |
commit | 9db96ee8394eb02b516efbea98375f69d36e2cb4 (patch) | |
tree | 5621b4e161d7c34fd204167e2d6b4243683f7a3d /nixos | |
parent | 13aff9b34cc32e59d35c62ac9356e4a41198a538 (diff) |
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
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/misc/paperless.nix | 3 |
1 files changed, 3 insertions, 0 deletions
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 = { |