From bc29f641bcf2ad50718d90e38becf2b8c55a3113 Mon Sep 17 00:00:00 2001 From: teutat3s Date: Mon, 15 Apr 2024 13:20:34 +0200 Subject: [PATCH] fae: enable scanning backend, increase nginx max body --- hosts/fae/fae.nix | 1 + hosts/fae/paperless.nix | 11 ++++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/hosts/fae/fae.nix b/hosts/fae/fae.nix index 9b2b47eb..b2d1eebf 100644 --- a/hosts/fae/fae.nix +++ b/hosts/fae/fae.nix @@ -20,6 +20,7 @@ services.openssh = { enable = true; openFirewall = true; + allowSFTP = true; }; boot.kernelParams = [ diff --git a/hosts/fae/paperless.nix b/hosts/fae/paperless.nix index 46063253..ce4fc447 100644 --- a/hosts/fae/paperless.nix +++ b/hosts/fae/paperless.nix @@ -48,17 +48,17 @@ in { dataDir = dataDir; address = "127.0.0.1"; extraConfig = { - PAPERLESS_OCR_LANGUAGE = "nld+deu"; PAPERLESS_ADMIN_USER = psCfg.user.name; PAPERLESS_AUTO_LOGIN_USERNAME = psCfg.user.name; PAPERLESS_URL = "https://paperless.faenix.eu"; }; }; - #hardware.sane = { - # enable = true; - # extraBackends = [pkgs.hplipWithPlugin]; - #}; + hardware.sane = { + enable = true; + # No aarch64 support for now + #brscan5.enable = true; + }; users.users."${psCfg.user.name}".packages = with pkgs; [ scan2paperless @@ -85,6 +85,7 @@ in { recommendedGzipSettings = true; recommendedTlsSettings = true; recommendedProxySettings = true; + clientMaxBodySize = "256m"; virtualHosts = { "paperless.faenix.eu" = {