Collabora
This setup installs Collabora onto the same host at Nextcloud.
This setup is used in preference to Nextcloud's built-in Collabora CODE server.
Setup
Keyring
sudo -s cd /etc/apt/keyrings wget -O collaboraonline-release-keyring.gpg https://collaboraoffice.com/downloads/gpg/collaboraonline-release-keyring.gpg
Sources
vi /etc/apt/sources.list.d/collaboraonline.sources
Types: deb URIs: https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-deb Suites: ./ Signed-By: /etc/apt/keyrings/collaboraonline-release-keyring.gpg
Install
apt update apt full-upgrade apt install coolwsd code-brand
Configure
Stop
systemctl stop coolwsd
Settings
These settings disable the built-in TLS service but enable TLS termination via a proxy.
The server listens only on the loopback adapter at 127.0.0.1
It's important to set an admin username and password in order to access the console.
coolconfig set ssl.enable false coolconfig set ssl.termination true coolconfig set net.proto IPv4 coolconfig set net.listen loopback coolconfig set storage.wopi.host nextcloud.example.com coolconfig set server_name nextcloud.example.com:8443 coolconfig set remote_font_config.url https://nextcloud.example.com/index.php/apps/richdocuments/settings/fonts.json coolconfig set-admin-password --user=admin --password=changeme
Proxy
Proxy port 8443 to 9980 using Reverse proxy settings in Apache2 config (SSL termination).
Use the SSL cert for the nextcloud.example.com site.
NB Port 8443 should be accessible from the internet and the choice of port is arbitrary.
Restart
systemctl start coolwsd
Test
Admin console
https://nextcloud.example.com:8443/browser/dist/admin/admin.html
Discovery
https://nextcloud.example.com:8443/hosting/discovery
Nextcloud
Use your own server:
https://nextcloud.example.com:8443
Logging
Default log level is warning
coolconfig set logging.level warning
Log level can be 0-8 (with the lowest numbers being the least verbose), or none (turns off logging), fatal, critical, error, warning, notice, information, debug, trace“
Debug connections:
coolconfig set logging.level 6
Follow log:
journalctl -fu coolwsd

