Issues connecting to Collabora - Unraid with Cloudflare Tunnels

I have just recently installed Nextcloud and Collabora on an Unraid NAS.

Both are set up via Cloudflare tunnels:

Nextcloud - https://nextcloud.*****.com → http://ip-address:8080
Collabora - https://collabora.*****.com → http://ip-address:9980

Both Nextcloud and Collabora appear to be working correctly when i go to these URLs, but I get the following error message in Nextcloud on the Office settings page.

Your browser has been unable to connect to the Collabora server: http://collabora.***.com

This URL is determined on the Collabora server either from the configured URL or the server_name parameter in coolwsd.xml.

(Note, I have inputted the URL as https, not http as appears in the error message)

hi @Tim_Green welcome to the community :handshake:

Please review

I would guess something is wrong with trusted_proxies and/or X-FORWARDED-* http headers. cloudflare magic is known to brake things - try first without fancy stuff like script compression etc…

Hi,

Thanks so much!

I’ve reviewed my Trusted Proxies - which I hadn’t set up properly - and disabled all “CloudFlare magic”, but with no luck.

Not really sure how to start when it comes to troubleshooting the http headers…

the continue with troubleshooting steps from collabora integration guide and review error messages, logs etc.

Aha! The hosting/discovery XML document in Collabora showed URLs with the http:// not https://.

I found the solution on this Stack Exchange

I needed to change the extra parameters variable in docker from extra_params=--o:ssl.enable=false to extra_params=--o:ssl.enable=false --o:ssl.termination=true, and it fixed the issue. :grin:

1 Like

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.