Nextcloud Collabora integration not working + https issues

Hi! I am currently attempting to set up Collabora for my Nextcloud instance, I have managed to set up a server which I can access through both Nextcloud and external devices. But Nextcloud still say that it couldn’t be accessed through my browser at office[dot]mydomain[dot]com despite that if I enter that URL into the address bar it shows «OK» and /hosting/discovery is up and running as it should.

I found this thread that said that it could be linked to SSL, but after asking the Caddy community for help they said that the problem is on Collabora’s side regarding X-Forwarded-Proto. Thus I expect that this wouldn’t be the solution if my Collabora instance didn’t respect X-Forwarded-Proto from Caddy (which the Collabora thread also found).

But my problem persists, how do I properly link Collabora and Nextcloud? And how do I fix the SSL issue where Collabora displays http:// links in /hosting/discovery?

I also wonder if anyone can explain the domain, aliasgroup1, username, and password environment variables? None is currently present in the current config, just extra_params:—o:ssl.enable=false —o:ssl.termination=true

Run on DietPi V10.0.1 with arm64 in a Podman quadlet using the image collabora/code:latest

hi @Catly

Your issue

Collabora shows http:// in /hosting/discovery

  • Nextcloud rejects it
  • Because Collabora does not detect HTTPS correctly behind Caddy.

Fix

Use this configuration in Collabora: (This is example config)

--o:ssl.enable=false
--o:ssl.termination=true
--o:net.proxy_prefix=true
--o:storage.wopi.allow=true
--o:storage.wopi.host[0]=cloud.mydomain.com

Replace cloud.mydomain.com with your Nextcloud domain.

Important

  • storage.wopi.host[0] must match your Nextcloud domain
  • Dots do NOT need escaping in this newer format
  • You do NOT need username/password
  • aliasgroup1 is only for multiple domains

After restart

Open:

https://office.mydomain.com/hosting/discovery

If it now shows https:// links inside the XML, it will work.

Thank you so much for taking your time to answer! When I get home I’ll definitely try it!

1 Like