From f7a8cfb11990347e4df8a07ff4b918a4d5422468 Mon Sep 17 00:00:00 2001 From: Yureka Date: Sat, 7 Jun 2025 15:38:27 +0200 Subject: [PATCH] nixos/lasuite-docs: Set collaboration server allowed origins (#413190) Without this, the collaboration server closes the websocket connection and activity within the doc is not synchronized. --- nixos/modules/services/web-apps/lasuite-docs.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nixos/modules/services/web-apps/lasuite-docs.nix b/nixos/modules/services/web-apps/lasuite-docs.nix index ee9042037a1b..26808c2e7f55 100644 --- a/nixos/modules/services/web-apps/lasuite-docs.nix +++ b/nixos/modules/services/web-apps/lasuite-docs.nix @@ -176,6 +176,13 @@ in defaultText = lib.literalExpression "https://\${cfg.domain}"; description = "URL to the backend server base"; }; + + COLLABORATION_SERVER_ORIGIN = mkOption { + type = types.str; + default = "https://${cfg.domain}"; + defaultText = lib.literalExpression "https://\${cfg.domain}"; + description = "Origins allowed to connect to the collaboration server"; + }; }; }; default = { };