Nextcloud & Collabora docker installation. Error: Collabora Online should use the same protocol as the server installation

nginx
docker
ssl
#1

I am in the process of installing Nextcloud and Collabora with Docker. I use the following docker-compose file to do the job:

https://github.com/nextcloud/docker/pull/630/files

I haven’t done any further configuration.

When I start the Collabora Integration app and fill in the collabora url [as: https://collabora_subdomain.domain.xx], I get the following error:

Collabora Online should use the same protocol as the server installation

When I try to open a document I get:

Failed to load Collabora Online - please try again later

Where could the problem lay?

#2

I had the same problem with a nextcloud instance in a docker container behind a reverse proxy which does the transport encryption. Try connecting directly to the container without connecting to the proxy and check the mark beside “accept self-signed certificats”.

#3

Hi @kromsam, I’ll post this response in both places.

Here is a snippet from my /app/config/config.php, my assumption is you need to add the lines for overwritehost and overwriteprotocol. This is necessary if you wish to use the passwords app as well. Be sure to use your actual hostname for your nextcloud where I have used cloud.example.com below. If setup properly there should be no reason to manually go around your letsencrpt certs.

$CONFIG = array (
  'htaccess.RewriteBase' => '/',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'trusted_proxies' => 
  array (
    0 => '172.30.0.3',
  ),
  'overwritehost' => 'cloud.example.com',
  'overwriteprotocol' => 'https',
  'apps_paths' => 
  array (
...

All the best,
Aaron

#4

Hey I have the same problem. I have installed it with the Compose file below.
If I open the office.domain.tdl, the Website from Collabora give me a request “Ok”.
But I can’t bind it in Nextcloud.

I have seen on my nextcloud.domain.tld that I get an error -->

{status: 0,…} message: "cURL error 6: Could not resolve host: office.domain.tld (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)" status: 0

What can I do, to fix that?