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 office.something.com – He has nextcloud on cloud.something.com

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

add the docor conaoter with collabora online

 

 

Apache

Copy paste from manual on website

Acmetool

Github – just google Acme

Checklist

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

subdomain office.something.com

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 127.0.0.1:9980:9980 -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 office.example.com:443

Nextcloud also runs on 443. 

 

SSL Certificate File

From Acme. From Lets Encrypt

SSLCertificateFile /var/lib/acme/live/office.example.com/cert
SSLCertificateChainFile /var/lib/acme/live/office.example.com/chain
SSLCertificateKeyFile /var/lib/acme/live/office.example.com/privkey

Getting Acme Up

acme.conf

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.

 

https://office.example.com:443

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 *