Hello everyone,
right now I’m trying to integrate the collabora docker container in our Nextcloud in our company.
Operating System: Ubuntu 18.04.1 LTS
Kernel: 4.15.0-65-generic
Webserver: Apache/2.4.29
Nextcloud Version: 18.0.1
Docker Version: 18.09.7, build 2d0083d
The docker container is running on the same machine as Nextcloud. Both sites have a different subdomain.
Cloud -> cloud.domain.com
Collabora -> office.domain.com
The Cloud is working fine.
This is the VirtualHost Configuration of the docker container (I followed the official guidelines at https://nextcloud.com/collaboraonline/)
<VirtualHost *:443>
ServerName office.domain.com:443
#DocumentRoot /var/www/office.domain.com
ErrorLog /var/log/apache2/office.domain.com.log
LogLevel Debug
#Options -Indexes
#SSL configuration, you may want to take the easy route instead and use Lets Encrypt!
SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/office.domain.de/fullchain.pem
#SSLCertificateChainFile /etc/letsencrypt/live/office.domain.de/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/office.domain.de/privkey.pem
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-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS
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
#SSLProxyCheckPeerExpire 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
#Endpoint with information about availability of various features
ProxyPass /hosting/capabilities https:// 127.0.0.1:9980/hosting/capabilities retry=0
ProxyPassReverse /hosting/capabilities https:// 127.0.0.1:9980/hosting/capabilities
The docker run command looks like this
docker run -d -t -p 127.0.0.1:9980:9980 -e "domain=cloud\\.domain\\.com" --cap-add MKNOD --restart always collabora/code
When I type https:/ /office.domain.com/hosting/discovery I get the XML-File.
When I type https:/ /office.domain.com/loleaflet/dist/admin/admin.html I get the admin-login panel.
This let me assume, that the container is working correctly.
However when I enter https:/ /office.domain.com in the collabora settings in the nextcloud, the documents won’t open. I get the following error:
In english it means something like: failed to load collabora online. please try again later
I noticed, that when I type https:/ /office.domain.com in the browser, apache redirect me to another virtualhost document root. That’s why I experimented with DocumentRoot shown in above configuration, but without success (I was sent to the correct document root but could not open any file in the cloud).
I tried this at home too. At home I have dynamic dns with just one domain and my cloud and collabora are running on different machines and on different ports on the router. This is working.
I appreciate any help in advance. If you need any further information about my configuration, just let me know.
PS: I had to put some spaces in the links, because I can’t add more than four links as a newbie. If there is an easy way to format links, so they won’t interpreted as a link, please let me know.
Zusammenfassung
Dieser Text wird versteckt