chore: Add configurable per-document connection limit extension (#4717)

* chore: Add configurable per-document connection limit extension

* docs
This commit is contained in:
Tom Moor
2023-01-22 07:50:32 -08:00
committed by GitHub
parent aa88bb2a7b
commit 5b561e98f7
3 changed files with 77 additions and 0 deletions

View File

@@ -147,6 +147,17 @@ export class Environment {
process.env.COLLABORATION_URL
);
/**
* The maximum number of network clients that can be connected to a single
* document at once. Defaults to 100.
*/
@IsOptional()
@IsNumber()
public COLLABORATION_MAX_CLIENTS_PER_DOCUMENT = parseInt(
process.env.COLLABORATION_MAX_CLIENTS_PER_DOCUMENT || "100",
10
);
/**
* The port that the server will listen on, defaults to 3000.
*/