Collabora With Nextcloud

Three steps

Have next cloud running on server.

A sub domain or second domain for collabora to run on.

in his case it is – He has nextcloud on

both redirect to the same server. He is using a home server. That has nexcloud running and 

add the docor conaoter with collabora online




Copy paste from manual on website


Github – just google Acme


A host that can run docker. He already installed it on his server. 


apache – server is already running nextcloud

A cirtificate from lets encrypt



Start With Docker

At root user. He has root@cloud$

docker pull collabora/code

Run the docker container

docker run -t -d -p -e 'domain=cloud\\.nextcloud\\.com' --restart always --cap-add MKNOD collabora/code

Set the url “cloud\.nextcloud\.com” to where you have nextcloud installed. NOT the subdomain for Collabora.

If you do not get this set up right, you will get a connection error. USE NEXTCLOUD DOMAIN

Setting Apache Reverse Proxy

cd /etc/apache2/vhosts.d/

Enable modules by running these scripts at above path

a2enmod proxy
a2enmod proxy_wstunnel
a2enmod proxy_http
a2enmod ssl
a2enmod proxy

Make Virtual Host To Proxy Traffic

Use the script here

Update server name to your servername

Nextcloud also runs on 443. 


SSL Certificate File

From Acme. From Lets Encrypt

SSLCertificateFile /var/lib/acme/live/
SSLCertificateChainFile /var/lib/acme/live/
SSLCertificateKeyFile /var/lib/acme/live/

Getting Acme Up


acme has documentation on this. So do what they say and you will be fine. Divert all traffic on 443 unless it is specifically trying to verify a SSL certificate 

$ cat /etc/apache2/vhosts.d/acme.conf

Editing Nextcloud.conf

$ vi nectcloud.conf

He shows the settings of his nextcloud.conf

Servername and other items are updated. See video.

Reload Apache

$ rcapache2 restart

Configure In Nextcloud

Go to nextcloud. Download app Productivity > Collabora > Download & Enable

Be sure to disable Documents app. It will break Collabora.

Admin settings to configure online server.

Collabora Online server should be full URL with port.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.

Debugging Tip

Iptables and Firewalls. If you start or restart a firewall the result is a connection error in collabora online. 

This does not happen if you start a firewall first and the docker after. 


Add Your Heading Text Here

How to start / stop / restart the docker

$ rcSuSEfirewall2 restart
$ docker stop  --- Image code??---
$ docker restart
$ docker start  --- Image code??---

Leave a Comment

Your email address will not be published. Required fields are marked *