mirror of
https://github.com/ONLYOFFICE/server.git
synced 2026-04-07 14:04:35 +08:00
[config] Add editor.maxChangesSize limit to document changes
This commit is contained in:
committed by
Sergey Konovalov
parent
e82abbd3b2
commit
2553f74e5c
@ -259,7 +259,8 @@
|
||||
"attempts": 50,
|
||||
"delay": "2s"
|
||||
},
|
||||
"websocketMaxPayloadSize": "1.5MB"
|
||||
"websocketMaxPayloadSize": "1.5MB",
|
||||
"maxChangesSize": "50mb"
|
||||
},
|
||||
"sockjs": {
|
||||
"sockjs_url": "",
|
||||
|
||||
@ -112,6 +112,7 @@ const editorDataStorage = require('./' + configCommon.get('services.CoAuthoring.
|
||||
let cfgEditor = JSON.parse(JSON.stringify(config.get('editor')));
|
||||
cfgEditor['reconnection']['delay'] = ms(cfgEditor['reconnection']['delay']);
|
||||
cfgEditor['websocketMaxPayloadSize'] = bytes.parse(cfgEditor['websocketMaxPayloadSize']);
|
||||
cfgEditor['maxChangesSize'] = bytes.parse(cfgEditor['maxChangesSize']);
|
||||
//websocket payload size is limited by https://github.com/faye/faye-websocket-node#initialization-options (64 MiB)
|
||||
//xhr payload size is limited by nginx param client_max_body_size (current 100MB)
|
||||
//"1.5MB" is choosen to avoid disconnect(after 25s) while downloading/uploading oversized changes with 0.5Mbps connection
|
||||
|
||||
Reference in New Issue
Block a user