一、 首先解除文档服务中文件大小限制,进入容器onlyoffice-document-server中对指定配置文件进行maxDownloadBytes参数进行修改
docker exec -it onlyoffice-document-server /bin/bash
cd /etc/onlyoffice/documentserver
vi default.json (容器内没有vi vim工具可以使用nano 命令)
"FileConverter": { "converter": { "maxDownloadBytes": 104857600, "downloadTimeout": { "connectionAndInactivity": "2m", "wholeCycle": "2m" }, "downloadAttemptMaxCount": 3, "downloadAttemptDelay": 1000, "maxprocesscount": 1, "fontDir": "null", "presentationThemesDir": "null", "x2tPath": "null", "docbuilderPath": "null", "docbuilderAllFontsPath": "null", "docbuilderCoreFontsPath": "", "args": "", "spawnOptions": {}, "errorfiles": "", "streamWriterBufferSize": 8388608, "maxRedeliveredCount": 2, "input