TASTE-OF-IT

Nextcloud 11 Installation von Collabora Online

Nextcloud Logo

Nextcloud Logo

Nextcloud Collabora nutzt LibreOffice Online umd im Team oder alleine an Dokumenten zu arbeiten. Nachfolgend die Installation von Collabora im Docker Container für Nextcloud. Eine Anleitung zum installieren von Docker CE unter Debian gibt es hier: https://www.taste-of-it.de/debian-jessie-docker-ce-installation/

Achtung ! Soweit ich bisher gelesen habe ist diese Installation für Privat Use oder Testing. Folgende Einschränkungen sind mit dem Collabora CE verbunden:

über Collabora Online unter Nextcloud

Voraussetzung Nextcloud 11 Collabora

Nextcloud 11 Collabora Installation

# docker pull collabora/code
# docker run -t -d -p 127.0.0.1:9980:9980 -e 'domain=nextcloud\\.your-domain\\.com' --restart always --cap-add MKNOD collabora/code

# ggf. mit der Option –name einen aussagekräftigen Namen für den Container vergeben

Damit wird hört der Server über den Port 9980 auf localhost und der Apache muss wie nachfolgend konfiguriert werden.

nun Apache Reverseproxy installieren

# a2enmod proxy
# a2enmod proxy_wstunnel
# a2enmod proxy_http
# a2enmod ssl

LibreOffice Online in eine Subdomain installieren z.B.

Nachfolgend zztl. zur bereits konfigurierten SSL Verbindung, z.B. mitels Lets Encrypt, den vhost konfigurieren:

# nano /etc/apache2/sites-available/office.your-domain.com.conf

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://127.0.0.1:9980/loleaflet retry=0
ProxyPassReverse /loleaflet https://127.0.0.1:9980/loleaflet
# WOPI discovery URL
ProxyPass /hosting/discovery https://127.0.0.1:9980/hosting/discovery retry=0
ProxyPassReverse /hosting/discovery https://127.0.0.1:9980/hosting/discovery
# Main websocket
ProxyPassMatch "/lool/(.*)/ws$" wss://127.0.0.1:9980/lool/$1/ws nocanon
# Admin Console websocket
ProxyPass /lool/adminws wss://127.0.0.1:9980/lool/adminws
# Download as, Fullscreen presentation and Image upload operations
ProxyPass /lool https://127.0.0.1:9980/lool
ProxyPassReverse /lool https://127.0.0.1:9980/lool

Nextcloud Collabora App installieren

Abschließend muss für die Kommunikation der Nextcloud mit dem Online Office, noch die entsprechende App aus dem App-Store installiert und konfiguriert werden.

Quelle hierfür ist die gute Doku von Nextcloud und Collabora:

Die mobile Version verlassen