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:
@@ -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 = { };
|
||||
|
||||
Reference in New Issue
Block a user