Collabora Online on Nextcloud

Collabora OnlineCode Edition and Nextcloud

What is Collabora Online?

Collabora Online is a powerful tool suite with collaborative editing, where you can view, edit your different documents in real time with multiple people. It supports different document formats like DOC, DOCX, PPT, PPTX, XLS, Publisher …
It is Open Source, secure and can be used on Firefox, Google Chrome, IE etc.

What is Nextcloud?

Nextcloud is similar to Dropbox, a client-server software where you can view, edit and store files. The big advantages of Nextcloud is the price and the security. In fact, you can install your own Nextcloud server in your private server and it is free.

What are the benefits of installing Collabora into Nextcloud?

Those two tools will allow you to work in real time with your collaborators. You can access to your document and modify it directly on your tablet or even smartphone.
You will have the same functionality than Google Docs, but your information will be stored on your server, it means that only you, will have access to your data (no one else).

How to install it on Hidora?

On the Hidora platform:

1.Create a Nextcloud environment on the Marketplace and turn On the SSL.

Nextcloud MarketplaceNetxloud SSL

2.Create another environment (an Ubuntu VPS with Public IP) where you will install Collabora Online.

3.Connect you via SSH to your environment Collabora.

Update your VPS and install Docker

  • apt-get update
  • apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common
  • curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add –
  • sudo add-apt-repository “deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable”
  • sudo apt-get update
  • apt-get install -y docker-ce

Deploy Collabora on your environment

  • docker pull collabora/code
  • docker run -t -d -p  ipv4-public-collabora:9980:9980 -e ‘domain=nextcloud-name-environment\\.hidora\\.com‘ –restart always –cap-add MKNOD collabora/code

Configuration of Apache

  • a2enmod proxy
  • a2enmod proxy_wstunnel
  • a2enmod proxy_http
  • a2enmod ssl
  • service apache2 restart

Configuration of the VirtualHost

  • nano /etc/apache/sites-available/collabora.conf

<VirtualHost *:80>
ServerName name-collabora-serveur.hidora.com
#Redirection vers le HTTPS
# RewriteEngine on RewriteCond %{SERVER_NAME} = name-collabora-serveur.hidora.com
#RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,QSA,R=permanent]
</VirtualHost>

  • nano /etc/apache/sites-available/collabora-le-ssl.conf

<VirtualHost *:443>
ServerName name-collabora-serveur.hidora.com:443

Require all granted

ErrorLog /var/log/apache2/collabora-error.log
CustomLog /var/log/apache2/collabora-access.log combined
SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/name-collabora-serveur.hidora.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/name-collabora-serveur.hidora.com/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
SSLProtocol all -SSLv2 -SSLv3
SSLCipherSuite ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES25$
SSLHonorCipherOrder on
# Encoded slashes need to be allowed
AllowEncodedSlashes NoDecode
# Container uses a unique non-signed certificate
SSLProxyEngine On
SSLProxyVerify None
SSLProxyCheckPeerCN Off
SSLProxyCheckPeerName Off
# keep the host
ProxyPreserveHost On
# static html, js, images, etc. served from loolwsd
# loleaflet is the client part of LibreOffice Online
ProxyPass /loleaflet https://ip-public-collabora:9980/loleaflet retry=0
ProxyPassReverse /loleaflet https://ip-public-collabora:9980/loleaflet
# WOPI discovery URL
ProxyPass /hosting/discovery https://ip-public-collabora:9980/hosting/discovery retry=0
ProxyPassReverse /hosting/discovery https://ip-public-collabora:9980/hosting/discovery
# Main websocket
ProxyPassMatch “/lool/(.*)/ws$” wss://ip-public-collabora:9980/lool/$1/ws nocanon
# Admin Console websocket
ProxyPass /lool/adminws wss://ip-public-collabora:9980/lool/adminws
# Download as, Fullscreen presentation and Image upload operations
ProxyPass /lool https://ip-public-collabora:9980/lool
ProxyPassReverse /lool https://ip-public-collabora:9980/lool
</VirtualHost>

Installation of a certificate with Certbot

  • sudo apt-get update
  • sudo apt-get install software-properties-common
  • sudo add-apt-repository ppa:certbot/certbot
  • sudo apt-get update
  • sudo apt-get install python-certbot-apache
  • sudo certbot –apache
  • sudo certbot renew –dry-run  (renew automatically the certificate)
  • service docker restart

4.Configuration of Nextcloud

Go into your environment Nextcloud, activate Collabora online and specify the address of Collabora.

  • Settings →  Applications →   office documents → activate Collabora online
  • Settings →  Administration →  online Collabora → https://namecollabora-serveur.hidora.com/

5.Well done ! Open about.odt and try it

Why choose Hidora to install those tools?

The first reason, is that your data will be stored only in our Data Center which is located in Switzerland.
You will have no restriction regarding the number of users.
More additionnal functionality can be added to your environnment (like audio/video calls),
If you use Hidora, you will pay only for the resources that your company consumes.
Please contact our support, if you need help.

 

Please contact our support, if you need help or more information.