From 87cca163b00f49400dabb1575e2deb2994f2d9e2 Mon Sep 17 00:00:00 2001 From: Danilo Reyes Date: Sun, 26 Oct 2025 09:59:24 -0600 Subject: [PATCH] updated collabora docker --- modules/servers/nextcloud.nix | 31 +++++++++++++++++++++++-------- 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/modules/servers/nextcloud.nix b/modules/servers/nextcloud.nix index ea389e2..3de3956 100644 --- a/modules/servers/nextcloud.nix +++ b/modules/servers/nextcloud.nix @@ -187,6 +187,11 @@ in http2 = true; locations = { # static files + "^~ /browser" = { + proxyPass = cfgC.local; + extraConfig = commonProxyConfig; + }; + # Legacy static files (for compatibility) "^~ /loleaflet" = { proxyPass = cfgC.local; extraConfig = commonProxyConfig; @@ -202,11 +207,21 @@ in extraConfig = commonProxyConfig; }; # download, presentation, image upload and websocket + "~ ^/cool" = { + proxyPass = cfgC.local; + extraConfig = commonWebsocketConfig; + }; + # Legacy websocket (for compatibility) "~ ^/lool" = { proxyPass = cfgC.local; extraConfig = commonWebsocketConfig; }; # Admin Console websocket + "^~ /cool/adminws" = { + proxyPass = cfgC.local; + extraConfig = commonWebsocketConfig; + }; + # Legacy Admin Console websocket (for compatibility) "^~ /lool/adminws" = { proxyPass = cfgC.local; extraConfig = commonWebsocketConfig; @@ -231,23 +246,23 @@ in }; collabora = lib.mkIf cfgC.enable { autoStart = true; - image = "collabora/code"; - imageFile = pkgs.dockerTools.pullImage { - imageName = "collabora/code"; - imageDigest = "sha256:aab41379baf5652832e9237fcc06a768096a5a7fccc66cf8bd4fdb06d2cbba7f"; - sha256 = "sha256-M66lynhzaOEFnE15Sy1N6lBbGDxwNw6ap+IUJAvoCLs="; - }; + image = "collabora/code:latest"; ports = [ "9980:9980" ]; environment = { TZ = config.my.timeZone; domain = cfg.host; - aliasgroup1 = "${cfg.host}:443"; - aliasgroup2 = "cloud.rotehaare.art:443"; + aliasgroup1 = "${cfg.url}:443"; + aliasgroup2 = "https://cloud.rotehaare.art:443"; + server_name = cfgC.host; dictionaries = "en_CA en_US es_MX es_ES fr_FR it pt_BR ru"; extra_params = '' --o:ssl.enable=false --o:ssl.termination=true + --o:remote_font_config.url=${cfg.url}/apps/richdocuments/settings/fonts.json + --o:logging.level=information ''; + DONT_GEN_SSL_CERT = "1"; + SLEEPFORDEBUGGER = "0"; }; extraOptions = [ "--cap-add"