onlyoffice无法预览


#1


[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%E5%B9%B4%E5%BA%A6%E6%8A%80%E6%9C%AF%E6%AF%94%E6%AD%A6%E9%A1%B9%E7%9B%AE%E6%B1%87%E6%80%BB%E8%A1%A8%EF%BC%88%E5%85%AC%E5%8F%B8%E7%BA%A7%EF%BC%89%E7%A5%A8%E5%8A%A1%E9%83%A81.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)


#2

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


#3

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


#4

这种方式也是可以的


#5

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/


#6

是的你可以看一下


#7


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


#8

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