Connection reset by peer with Collabora on Seafile instance

Great, glad it is working now.

For anyone reading this later, here is what most likely fixed it, because I think only one of the two steps mattered.

Look at the discovery XML you posted: every urlsrc points at https://your-domain:9980/browser/… coolwsd builds those URLs from the server_name setting (or, when that is empty, from the Host header of the request that fetched /hosting/discovery). Seafile and OpenCloud only use /hosting/discovery to look up those URLs; the actual editor is then loaded by the browser from the urlsrc. So even though the discovery fetch through Cloudflare worked, the browser was being sent to port 9980, and Cloudflare does not proxy that port. That is why the document never loaded.

Changing the port in the Collabora container to 443 changed server_name and therefore the urlsrc, so the browser started going through Cloudflare on 443 like everything else. The AAAA record is almost certainly unrelated, since with the Cloudflare proxy on, the addresses clients see are Cloudflare’s anyway.

Two small clean-ups you may want to make:

  • Set server_name to just the bare domain, with no port. The URLs then become https://your-domain/browser/…, and 443 is implied. :443 works, it is just noise in every URL and in logs.
  • Keep ssl.enable=false and ssl.termination=true, as you have now, since TLS is terminated at your proxy and Cloudflare in front of it.

@MercyFunction Awesome work :tada:

Thanks
Darshan