From 078e12cbd737e880eedb5323d26516989857397f Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Mon, 6 Jan 2025 16:47:23 +0000 Subject: [PATCH] feat: enable the whiteboard --- applications/nextcloud.nix | 45 +++++++++++++++++++------------------- 1 file changed, 23 insertions(+), 22 deletions(-) diff --git a/applications/nextcloud.nix b/applications/nextcloud.nix index 04f52fa..bc7b1ae 100644 --- a/applications/nextcloud.nix +++ b/applications/nextcloud.nix @@ -59,11 +59,11 @@ in { r_type = "CNAME"; value = config.services.skynet.host.name; } - # { - # record = "whiteboard.${cfg.domain.sub}"; - # 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 @@ -87,6 +87,7 @@ in { extraApps = { inherit (config.services.nextcloud.package.packages.apps) richdocuments; }; + extraAppsEnable = true; settings = { trusted_proxies = ["193.1.99.65"]; @@ -96,15 +97,15 @@ 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"]; - # }; + 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 @@ -122,14 +123,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; - # }; - # }; + "whiteboard.${domain}" = { + forceSSL = true; + useACMEHost = "skynet"; + locations."/" = { + proxyPass = "http://localhost:3002"; + proxyWebsockets = true; + }; + }; }; }; }