mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-24 01:16:15 -04:00
Rate limit Socket IO communication - WIP (#4036)
Includes settings Includes i18n Includes a nice notification Disconnects on rate limit Includes feeding into metrics/stats Include console warn to server console.
This commit is contained in:
parent
4f5cf2dc63
commit
40014d8230
11 changed files with 75 additions and 8 deletions
|
@ -343,6 +343,22 @@ exports.importExportRateLimiting = {
|
|||
"max": 10
|
||||
};
|
||||
|
||||
/*
|
||||
* From Etherpad 1.9.0 onwards, commits from individual users are rate limited
|
||||
*
|
||||
* The default is to allow at most 10 changes per IP in a 1 second window.
|
||||
* After that the change is rejected.
|
||||
*
|
||||
* See https://github.com/animir/node-rate-limiter-flexible/wiki/Overall-example#websocket-single-connection-prevent-flooding for more options
|
||||
*/
|
||||
exports.commitRateLimiting = {
|
||||
// duration of the rate limit window (seconds)
|
||||
"duration": 1,
|
||||
|
||||
// maximum number of chanes per IP to allow during the rate limit window
|
||||
"points": 10
|
||||
};
|
||||
|
||||
/*
|
||||
* From Etherpad 1.8.3 onwards, the maximum allowed size for a single imported
|
||||
* file is always bounded.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue