mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-11 07:10:39 +02:00
feat: use polling for paperless because virtiofs doesn't send inotify events
This commit is contained in:
parent
8e32c5f0d6
commit
f9e1247b8a
3 changed files with 9 additions and 1 deletions
|
@ -67,6 +67,13 @@ in {
|
||||||
PAPERLESS_CORS_ALLOWED_HOSTS = "https://${paperlessDomain}";
|
PAPERLESS_CORS_ALLOWED_HOSTS = "https://${paperlessDomain}";
|
||||||
PAPERLESS_TRUSTED_PROXIES = sentinelCfg.meta.wireguard.proxy-sentinel.ipv4;
|
PAPERLESS_TRUSTED_PROXIES = sentinelCfg.meta.wireguard.proxy-sentinel.ipv4;
|
||||||
|
|
||||||
|
# virtiofsd doesn't send inotify events (not sure if generally, or because we
|
||||||
|
# mount the same host share on another vm (samba) and modify it there).
|
||||||
|
PAPERLESS_CONSUMER_POLLING = 1; # seconds
|
||||||
|
# Wait three seconds between file-modified checks. After 5 consecutive checks
|
||||||
|
# where the file wasn't modified it will be consumed.
|
||||||
|
PAPERLESS_CONSUMER_POLLING_DELAY = 3;
|
||||||
|
|
||||||
PAPERLESS_CONSUMER_ENABLE_BARCODES = true;
|
PAPERLESS_CONSUMER_ENABLE_BARCODES = true;
|
||||||
PAPERLESS_CONSUMER_ENABLE_ASN_BARCODE = true;
|
PAPERLESS_CONSUMER_ENABLE_ASN_BARCODE = true;
|
||||||
PAPERLESS_CONSUMER_BARCODE_SCANNER = "ZXING";
|
PAPERLESS_CONSUMER_BARCODE_SCANNER = "ZXING";
|
||||||
|
|
|
@ -363,6 +363,7 @@ in {
|
||||||
sshAgeSecret = "restic-ssh-privkey";
|
sshAgeSecret = "restic-ssh-privkey";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# We need to backup stuff from other users, so run as root.
|
||||||
user = "root";
|
user = "root";
|
||||||
timerConfig = {
|
timerConfig = {
|
||||||
OnCalendar = "06:15";
|
OnCalendar = "06:15";
|
||||||
|
|
|
@ -101,7 +101,7 @@ in {
|
||||||
sshAgeSecret = "restic-ssh-privkey";
|
sshAgeSecret = "restic-ssh-privkey";
|
||||||
};
|
};
|
||||||
|
|
||||||
user = "root";
|
user = "vaultwarden";
|
||||||
timerConfig = {
|
timerConfig = {
|
||||||
OnCalendar = "06:15";
|
OnCalendar = "06:15";
|
||||||
RandomizedDelaySec = "3h";
|
RandomizedDelaySec = "3h";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue