seafile onlyoffice打不开文件

这段时间突然间打开文件在线编辑就报这个错误,配置没有改动过!

Enable Only Office

ENABLE_ONLYOFFICE = True

VERIFY_ONLYOFFICE_CERTIFICATE = False

ONLYOFFICE_APIJS_URL = ‘https://xxx.xxx.xxx:8889/web-apps/apps/api/documents/api.js

ONLYOFFICE_FILE_EXTENSION = (‘doc’, ‘docx’, ‘ppt’, ‘pptx’, ‘xls’, ‘xlsx’, ‘odt’, ‘fodt’, ‘odp’, ‘fodp’, ‘ods’, ‘fods’)

ONLYOFFICE_EDIT_FILE_EXTENSION = (‘docx’, ‘pptx’, ‘xlsx’,‘ppt’,‘xls’,‘doc’)

ONLYOFFICE_JWT_SECRET = ‘Y5W4vpz4L9EkUganOniJ’

去服务器看一下是否可以Telnet通onlyoffice呢

可以的,我有另外一台nextcloud也是使用这个onlyoffice那个使用正常,就是seafile不行


检查一下这里的配置是否正确

从seafile上用curl访问onlyoffice试试
culr xxx.xxx.xxx.xxx:8889/welcome

root@yun:~# curl xxx.xxx.xxx:8889/welcome

400 The plain HTTP request was sent to HTTPS port

400 Bad Request

The plain HTTP request was sent to HTTPS port
nginx

都正常

你是加密的,应该用https而不是http
curl https://xxx.xxx.xxx:8889/](https://xxx.xxx.xxx:8889/

企业微信截图_16814410661497

这应该是正常的吧,就是打开不了文档