mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-23 08:56:17 -04:00
security: New setting for Socket.IO maxHttpBufferSize
This commit is contained in:
parent
ed93ef5636
commit
b7e88cb904
5 changed files with 39 additions and 4 deletions
|
@ -104,6 +104,18 @@ exports.ssl = false;
|
|||
**/
|
||||
exports.socketTransportProtocols = ['xhr-polling', 'jsonp-polling', 'htmlfile'];
|
||||
|
||||
exports.socketIo = {
|
||||
/**
|
||||
* Maximum permitted client message size (in bytes).
|
||||
*
|
||||
* All messages from clients that are larger than this will be rejected. Large values make it
|
||||
* possible to paste large amounts of text, and plugins may require a larger value to work
|
||||
* properly, but increasing the value increases susceptibility to denial of service attacks
|
||||
* (malicious clients can exhaust memory).
|
||||
*/
|
||||
maxHttpBufferSize: 10000,
|
||||
};
|
||||
|
||||
/*
|
||||
* The Type of the database
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue