OnlyOffice 打开文档时提示下载失败
查看OnlyOffice Converter的日志:docker logs -f 容器名发现日志文件中存在如下报错:
Error: DNS lookup xxx.xxx.xxx.xx(family:undefined, host:undefined) is not allowed. Because, It is private IP address.
解决方式:需要编辑配置文件允许私有ip通过
编辑docker中/etc/onlyoffice/documentserver/default.json
下的内容
docker exec -it onlyoffice-server /bin/bash
# 搜索并修改以下字段为true
nano /etc/onlyoffice/documentserver/default.json
"request-filtering-agent" : {
"allowPrivateIPAddress": true,
"allowMetaIPAddress": true
},
评论区