paperless: update scheduler & task queue
these need PrivateNetwork disabled since redis is hosted on another host
This commit is contained in:
parent
42ab6968b4
commit
8447df4bd7
1 changed files with 9 additions and 1 deletions
|
@ -1,12 +1,19 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
config,
|
config,
|
||||||
|
lib,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
sops.secrets.paperless-pwd = {
|
sops.secrets.paperless-pwd = {
|
||||||
owner = "paperless";
|
owner = "paperless";
|
||||||
group = "paperless";
|
group = "paperless";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.services = {
|
||||||
|
paperless-task-queue.serviceConfig = {PrivateNetwork = false;};
|
||||||
|
paperless-scheduler.serviceConfig = {PrivateNetwork = lib.mkForce false;};
|
||||||
|
};
|
||||||
|
|
||||||
services.paperless = let
|
services.paperless = let
|
||||||
dataDir = "/var/lib/paperless-ngx";
|
dataDir = "/var/lib/paperless-ngx";
|
||||||
in {
|
in {
|
||||||
|
@ -20,7 +27,8 @@
|
||||||
consumptionDir = "${dataDir}/consume";
|
consumptionDir = "${dataDir}/consume";
|
||||||
settings = {
|
settings = {
|
||||||
PAPERLESS_ADMIN_USER = "notoh";
|
PAPERLESS_ADMIN_USER = "notoh";
|
||||||
PAPERLESS_REDIS = "redis://:paperless-ngx@100.94.214.100:6382";
|
PAPERLESS_REDIS = "redis://:paperless-ngx@192.168.1.211:6382";
|
||||||
|
PAPERLESS_EMAIL_TASK_CRON = "*/5 * * * *";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue