From 3a514e7711ba2c9d41b1345e752660c65b7f2a20 Mon Sep 17 00:00:00 2001 From: oddlama Date: Fri, 2 Feb 2024 01:55:13 +0100 Subject: [PATCH] feat: soft-fail on ghostscript errors in paperless --- hosts/sire/guests/paperless.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hosts/sire/guests/paperless.nix b/hosts/sire/guests/paperless.nix index ecdc90f..4fea51e 100644 --- a/hosts/sire/guests/paperless.nix +++ b/hosts/sire/guests/paperless.nix @@ -69,6 +69,11 @@ in { PAPERLESS_CORS_ALLOWED_HOSTS = "https://${paperlessDomain}"; PAPERLESS_TRUSTED_PROXIES = sentinelCfg.meta.wireguard.proxy-sentinel.ipv4; + # Ghostscript is entirely bug-free. + PAPERLESS_OCR_USER_ARGS = builtins.toJSON { + continue_on_soft_render_error = true; + }; + # 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