feat: nextcloud whiteboard server

features:
nextcloud whiteboard server
nextcloud memories with recognize patch
This commit is contained in:
danny 2025-10-15 23:10:28 +08:00
parent 6a71b601f5
commit dfda745829
13 changed files with 165 additions and 23 deletions

View file

@ -1,8 +1,12 @@
{
domain ? "localhost",
configureNginx ? true,
passwordFile,
}:
{ config, ... }:
{ config, lib, ... }:
let
inherit (lib) mkIf optionalString;
in
{
services.paperless = {
enable = true;
@ -18,13 +22,13 @@
optimize = 1;
pdfa_image_compression = "lossless";
};
PAPERLESS_URL = "https://${domain}";
PAPERLESS_URL = "http${optionalString configureNginx "s"}://${domain}";
};
configureTika = true;
database.createLocally = true;
};
services.nginx.virtualHosts."${domain}" = {
services.nginx.virtualHosts."${domain}" = mkIf configureNginx {
enableACME = true;
forceSSL = true;
locations."/".proxyPass = "http://localhost:${toString config.services.paperless.port}";