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:
parent
7f7282e533
commit
f7a8cfb119
1 changed files with 7 additions and 0 deletions
|
@ -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 = { };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue