From abf5571edbc9dd4c1d517713146125df30beb13c Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Fri, 1 Nov 2024 23:16:45 +0000 Subject: [PATCH] testing: to see if we can get a whiteboard working --- applications/nextcloud.nix | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/applications/nextcloud.nix b/applications/nextcloud.nix index e31f67c..e1ca27e 100644 --- a/applications/nextcloud.nix +++ b/applications/nextcloud.nix @@ -45,6 +45,7 @@ in { services.skynet.acme.domains = [ domain "onlyoffice.${domain}" + "whiteboard.${domain}" ]; services.skynet.dns.records = [ @@ -58,13 +59,18 @@ in { r_type = "CNAME"; value = config.services.skynet.host.name; } + # { + # record = "whiteboard.${cfg.domain.sub}"; + # r_type = "CNAME"; + # value = config.services.skynet.host.name; + # } ]; # /var/lib/nextcloud/data services.nextcloud = { enable = true; - package = pkgs.nextcloud28; + package = pkgs.nextcloud30; hostName = domain; https = true; @@ -78,8 +84,8 @@ in { appstoreEnable = true; - extraApps = with config.services.nextcloud.package.packages.apps; { - inherit forms groupfolders maps notes onlyoffice polls; + extraApps = { + inherit (config.services.nextcloud.package.packages.apps) richdocuments; }; settings = { @@ -90,7 +96,18 @@ in { }; }; + # environment.etc."nextcloud-whiteboard-secret".text = '' + # JWT_SECRET_KEY=test123 + # ''; + # + # services.nextcloud-whiteboard-server = { + # enable = true; + # settings.NEXTCLOUD_URL = "https://nextcloud.skynet.ie"; + # secrets = ["/etc/nextcloud-whiteboard-secret"]; + # }; + nixpkgs.config.allowUnfree = true; + # impacted by https://github.com/NixOS /nixpkgs/issues/352443 services.onlyoffice = { enable = true; }; @@ -105,6 +122,14 @@ in { useACMEHost = "skynet"; locations."/".proxyPass = "http://127.0.0.1:8000"; }; + # "whiteboard.${domain}" = { + # forceSSL = true; + # useACMEHost = "skynet"; + # locations."/" = { + # proxyPass = "http://localhost:3002"; + # proxyWebsockets = true; + # }; + # }; }; }; }