Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Steps to install Collabora on a VirtualBox UbuntuServer
- Step 1: Install Docker on Ubuntu 16.04
- sudo apt update
- sudo apt install docker.io
- sudo systemctl status docker
- sudo systemctl start docker
- sudo systemctl enable docker
- sudo mkdir /etc/systemd/system/docker.service.d
- sudo nano /etc/systemd/system/docker.service.d/DeviceMapper.conf
- Paste the following text into the file.
- [Service]
- ExecStart=
- ExecStart=/usr/bin/dockerd --storage-driver=devicemapper -H fd://
- sudo systemctl daemon-reload
- sudo systemctl restart docker
- sudo docker info
- Output:
- Containers: 1
- Running: 1
- Paused: 0
- Stopped: 0
- Images: 1
- Server Version: 1.13.1
- Storage Driver: devicemapper
- Pool Name: docker-253:1-515579-pool
- Step 2 install Collabora
- sudo docker pull collabora/code
- sudo docker run -t -d -p 127.0.0.1:9980:9980 -e 'domain=your_NextCloud\\.your_domain\\.tld' --restart always --cap-add MKNOD collabora/code
- Nginx.vhost configuration:
- Put the following text into the files.
- server {
- listen 80;
- server_name office.your-domain.com;
- root /usr/share/nginx/office;
- }
- Nginx.Vhost-ssl configuration
- server {
- listen 443 ssl;
- server_name office.your-domain.com;
- root /usr/share/nginx/office;
- ssl_protocols TLSv1.1 TLSv1.2;
- ssl_certificate /etc/letsencrypt/live/office.your-domain.com/fullchain.pem;
- ssl_certificate_key /etc/letsencrypt/live/office.your-domain.com/privkey.pem;
- # 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;
- }
- # websockets, download, presentation and image upload
- location ^~ /lool {
- proxy_pass https://localhost:9980;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection "upgrade";
- proxy_set_header Host $http_host;
- }
- }
- sudo nginx -t
- sudo systemctl reload nginx
Advertisement
Add Comment
Please, Sign In to add comment