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
然后就可以使用 Collabora Office
本作品采用知识共享署名-相同方式共享 4.0 国际许可协议进行许可。
暂无评论
要发表评论,您必须先 登录