宝塔+owncloud+Collabora Office 文档在线操作

1)宝塔安装docker

2)宝塔下载collabora/code

sudo docker pull collabora/code

3)Collabora添加信任域名(owncloud的域名)

sudo -i docker run -t -d -p 127.0.0.1:9980:9980 -e 'domain=192.168.31.157|cloud.saiita.com.cn' -e "username=admin" -e "password=密码" --restart always --cap-add MKNOD collabora/code

4)宝塔添加 Collabora 域名

5)修改nginx的配置文件

server {
    listen       443 ssl;
    server_name  collabora.example.com;
    #证书的路径
    ssl_certificate /path/to/ssl_certificate;
    ssl_certificate_key /path/to/ssl_certificate_key;

    # static files
    location ^~ /loleaflet {
        proxy_pass https://localhost:9980;
        proxy_set_header Host $http_host;
    }

    # WOPI discovery URL
    location ^~ /hosting/discovery {
        proxy_pass https://localhost:9980;
        proxy_set_header Host $http_host;
    }

    # main websocket
    location ~ ^/lool/(.*)/ws$ {
        proxy_pass https://localhost:9980;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "Upgrade";
        proxy_set_header Host $http_host;
        proxy_read_timeout 36000s;
    }

    # download, presentation and image upload
    location ~ ^/lool {
        proxy_pass https://localhost:9980;
        proxy_set_header Host $http_host;
    }

    # Admin Console websocket
    location ^~ /lool/adminws {
        proxy_pass https://localhost:9980;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "Upgrade";
        proxy_set_header Host $http_host;
        proxy_read_timeout 36000s;
    }
}

6)通过宝塔重启nginx

7)owncloud配置 Collabora

宝塔+owncloud+Collabora Office 文档在线操作

然后就可以使用 Collabora Office



手机观看扫描下方微信小程序二维码


知识共享许可协议本作品采用知识共享署名-相同方式共享 4.0 国际许可协议进行许可。

相关推荐

为知笔记 docker 更新

如何更新为知笔记 docker 手机观看扫描下方微信小程序二维码 本作品采用知识共享署名-相同方式共享 4.0 ...

暂无评论

目录展开