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
This commit is contained in:
Flakebi 2024-02-28 09:12:48 +01:00
parent 13aff9b34c
commit 9db96ee839
No known key found for this signature in database
GPG Key ID: 38E7ED984D7DCD02

View File

@ -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 = {