1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-09 17:46:29 +09:00

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
Signed by: github
GPG key ID: B5690EEEBB952194

View file

@ -176,6 +176,13 @@ in
defaultText = lib.literalExpression "https://\${cfg.domain}"; defaultText = lib.literalExpression "https://\${cfg.domain}";
description = "URL to the backend server base"; 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 = { }; default = { };