安装Collabora Online服务
参考博客:http://blog.sina.com.cn/s/blog_16b158be80102xp5u.html
一、安装docker服务
yum install -y yum-utils
yum install docker -y
systemctl enable docker
systemctl start docker
docker ps
systemctl status docker
docker pull collabora/code
docker run -t -d -p 127.0.0.1:9980:9980 -e 'domain=cloud\.flybird\.com' -e "username=admin" -e "password=123456" --restart always --cap-add MKNOD collabora/code
docker run -t -d -p 0.0.0.0:9980:9980 -e 'domain=cloud\.flybird\.com' -e "username=admin" -e "password=123456" --restart always --cap-add MKNOD collabora/code
server {
listen 443 ssl;
server_name collabora.flybird.com;
ssl_certificate /etc/nginx/cert/nextcloud.crt;
ssl_certificate_key /etc/nginx/cert/nextcloud.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;
}
}