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.
This commit is contained in:
Yureka 2025-06-07 15:38:27 +02:00 committed by GitHub
parent 7f7282e533
commit f7a8cfb119
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 = { };