cpp
JWT_ENABLED=false
onlyoffice8.2添加上面环境变量禁用JWT后提示下载失败,查看运行日志
cpp
[2024-12-10T08:10:49.086] [ERROR] [localhost] [ere333111] [user123] nodeJS - error downloadFile:url=http://192.168.199.129:3330/c.docx;attempt=1;code:null;connect:null Error: DNS lookup 192.168.199.129(family:undefined, host:undefined) is not allowed. Because, It is private IP address.
有这么一段查询资料编辑docker中/etc/onlyoffice/documentserver/default.json
下的内容
cpp
"request-filtering-agent" : {
"allowPrivateIPAddress": true,
"allowMetaIPAddress": true
},
改完重启问题解决