From 7da7b7167aa9bef30232bc03a9098575e62ccc52 Mon Sep 17 00:00:00 2001 From: William Date: Sat, 18 Oct 2025 15:26:32 -0300 Subject: [PATCH] i give up on nextcloud office --- hosts/alexandria/nextcloud.nix | 39 +++++++++------------------------- 1 file changed, 10 insertions(+), 29 deletions(-) diff --git a/hosts/alexandria/nextcloud.nix b/hosts/alexandria/nextcloud.nix index 373b0e5..84de9fc 100644 --- a/hosts/alexandria/nextcloud.nix +++ b/hosts/alexandria/nextcloud.nix @@ -15,7 +15,7 @@ in services = { nextcloud = { enable = true; - package = pkgs.nextcloud31; + package = pkgs.nextcloud32; datadir = "/data/nextcloud"; hostName = "cloud.baduhai.dev"; configureRedis = true; @@ -23,6 +23,14 @@ in secretFile = config.age.secrets."nextcloud-secrets.json".path; database.createLocally = true; maxUploadSize = "16G"; + extraApps = { + inherit (config.services.nextcloud.package.packages.apps) + calendar + contacts + notes + ; + }; + extraAppsEnable = true; caching = { apcu = true; redis = true; @@ -66,36 +74,9 @@ in }; }; - collabora-online = { - enable = true; - port = 9980; - settings = { - ssl = { - enable = false; - termination = true; - }; - net = { - listen = "loopback"; - frame_ancestors = "cloud.baduhai.dev"; - }; - }; - }; - nginx.virtualHosts = mkNginxVHosts { acmeHost = "baduhai.dev"; - domains = { - "cloud.baduhai.dev" = { }; - "office.baduhai.dev".locations = { - "/".proxyPass = "http://127.0.0.1:${toString config.services.collabora-online.port}"; - "~ ^/cool/(.*)/ws$".proxyPass = "http://127.0.0.1:${toString config.services.collabora-online.port}"; - "~ ^/cool/(.*)/ws$".extraConfig = '' - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - proxy_read_timeout 36000s; - ''; - }; - }; + domains."cloud.baduhai.dev" = { }; }; };