oliverv

Install Collabora on a VirtualBox UbuntuServer16.04

Dec 24th, 2017
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.00 KB | None | 0 0
  1. Steps to install Collabora on a VirtualBox UbuntuServer
  2.  
  3. Step 1: Install Docker on Ubuntu 16.04
  4.  
  5. sudo apt update
  6. sudo apt install docker.io
  7.  
  8. sudo systemctl status docker
  9.  
  10. sudo systemctl start docker
  11.  
  12. sudo systemctl enable docker
  13.  
  14. sudo mkdir /etc/systemd/system/docker.service.d
  15.  
  16. sudo nano /etc/systemd/system/docker.service.d/DeviceMapper.conf
  17.  
  18. Paste the following text into the file.
  19.  
  20. [Service]
  21. ExecStart=
  22. ExecStart=/usr/bin/dockerd --storage-driver=devicemapper -H fd://
  23.  
  24. sudo systemctl daemon-reload
  25.  
  26. sudo systemctl restart docker
  27.  
  28. sudo docker info
  29.  
  30. Output:
  31.  
  32. Containers: 1
  33. Running: 1
  34. Paused: 0
  35. Stopped: 0
  36. Images: 1
  37. Server Version: 1.13.1
  38. Storage Driver: devicemapper
  39. Pool Name: docker-253:1-515579-pool
  40.  
  41. Step 2 install Collabora
  42.  
  43. sudo docker pull collabora/code
  44.  
  45. 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
  46.  
  47. Nginx.vhost configuration:
  48.  
  49. Put the following text into the files.
  50.  
  51. server {
  52. listen 80;
  53. server_name office.your-domain.com;
  54.  
  55. root /usr/share/nginx/office;
  56. }
  57.  
  58. Nginx.Vhost-ssl configuration
  59.  
  60. server {
  61. listen 443 ssl;
  62. server_name office.your-domain.com;
  63. root /usr/share/nginx/office;
  64.  
  65. ssl_protocols TLSv1.1 TLSv1.2;
  66. ssl_certificate /etc/letsencrypt/live/office.your-domain.com/fullchain.pem;
  67. ssl_certificate_key /etc/letsencrypt/live/office.your-domain.com/privkey.pem;
  68.  
  69. # static files
  70. location ^~ /loleaflet {
  71. proxy_pass https://localhost:9980;
  72. proxy_set_header Host $http_host;
  73. }
  74.  
  75. # WOPI discovery URL
  76. location ^~ /hosting/discovery {
  77. proxy_pass https://localhost:9980;
  78. proxy_set_header Host $http_host;
  79. }
  80.  
  81. # websockets, download, presentation and image upload
  82. location ^~ /lool {
  83. proxy_pass https://localhost:9980;
  84. proxy_set_header Upgrade $http_upgrade;
  85. proxy_set_header Connection "upgrade";
  86. proxy_set_header Host $http_host;
  87. }
  88. }
  89.  
  90. sudo nginx -t
  91.  
  92. sudo systemctl reload nginx
Advertisement
Add Comment
Please, Sign In to add comment