feat: use polling for paperless because virtiofs doesn't send inotify events

This commit is contained in:
oddlama 2024-01-19 22:03:52 +01:00
parent 8e32c5f0d6
commit f9e1247b8a
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
3 changed files with 9 additions and 1 deletions

View file

@ -67,6 +67,13 @@ in {
PAPERLESS_CORS_ALLOWED_HOSTS = "https://${paperlessDomain}";
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_ASN_BARCODE = true;
PAPERLESS_CONSUMER_BARCODE_SCANNER = "ZXING";