onlyoffice无法预览


[2021-01-25T00:54:32.331] [ERROR] nodeJS - error downloadFile:url=http://27.221.110.77:8085/seafhttp/files/2c4e65ac-4c9e-433a-8e91-6abd0aa0ff8e/2019年度技术比武项目汇总表(公司级)票务部1.xlsx;attempt=1;code:ETIMEDOUT;connect:true;(id=3ca417861d8ddc194a06)
Error: ETIMEDOUT
at Timeout. (/snapshot/server/build/server/Common/node_modules/request/request.js:848:19)
at ontimeout (timers.js:436:11)
at tryOnTimeout (timers.js:300:5)
at listOnTimeout (timers.js:263:5)
at Timer.processTimers (timers.js:223:10)

你使用NGINX代理一下onlyoffice https://manual.seafile.com/deploy/only_office/

谢谢我试试,另外请问一下,我是否可以用当前https代理docker里onlyoffice的http?这样我从想外面访问https的网盘,然后预览的时候也是https ,但实际我onlyoffice没有部署证书

这种方式也是可以的

location /onlyofficeds/ {
# IMPORTANT ! - Trailing slash !
proxy_pass http://127.0.0.1:88/;

    proxy_http_version 1.1;
    client_max_body_size 100M; # Limit Document size to 100MB
    proxy_read_timeout 3600s;
    proxy_connect_timeout 3600s;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection $proxy_connection;

    # IMPORTANT ! - Subfolder and NO trailing slash !
    proxy_set_header X-Forwarded-Host $the_host/onlyofficeds;

    proxy_set_header X-Forwarded-Proto $the_scheme;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

代理这样配置就可以是吗?location /onlyofficeds/ 这里的路径,我是不是应该写/web-apps/

是的你可以看一下


配置完访问不到,是因为onlyoffice用的docker的事儿吗?

你应该是 https://域名或IP/onlyofficeds/~~~

你好,你说的是seafile的ONLYOFFICE_APIJS_URL地址吗?应该是“ https://域名或IP/onlyofficeds/~~~ ”这个?