feat: nextcloud whiteboard server
features: nextcloud whiteboard server nextcloud memories with recognize patch
This commit is contained in:
parent
6a71b601f5
commit
dfda745829
13 changed files with 165 additions and 23 deletions
|
|
@ -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}";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue