I am having troubles setting up my collabora instance.
I have set up nextcloud.mydomain.com whoch worls fine.
I have created collabora.mydomain.com and a proxy host on nginx. In theory this should work, but it does not.
collaboramydomaincom results in a blank site, with the string “ok” written on it. However, colllaboramydomaincom/hosting/discovery errors out with 502 bad gateway (instead of the xml, which is working on my local LAN (same nginx setup with the DNS defined on the router)).
I have disabled cloudflare proxying (DNS only) and it still does not work.
Thank you for helping
Hello @MRodneyMcKay welcome to collabora online forum
collabora.mydomain.com
gives a blank page with “ok” → This is expected behavior from the Collabora server root (/
responds with “ok”).- But
collabora.mydomain.com/hosting/discovery
returns a 502 Bad Gateway → This means Nginx couldn’t connect to the upstream Collabora service. - This works fine on your local network with router DNS → Confirms that Collabora is working correctly behind a local reverse proxy.
So the issue likely lies with your external reverse proxy configuration or network reachability (NAT, Docker, firewall) when accessed from the public internet.
Nginx Reverse Proxy for Collabora: Proxy settings — SDK https://sdk.collaboraonline.com/ documentation
For proxy setting see below thread, it has very similar setup as yours
If still stuck, please share:
- Your
nginx
config forcollabora.mydomain.com
- How you started Collabora (Docker run or Compose)
- Output of
curl http://localhost:9980/hosting/discovery
from Nginx machine
I can then pinpoint the issue more precisely.
Thanks
Darshan
Managed to move forward.
Right now, everything works through cloudflare, i can get the /hosting/discovery xml.
I have added the cloudflare ips for wopi addresses.
But it still does not work, in collabora logs, i see this:
2025-06-16 09:13:22.448021+00:00wsd-00001-00032 2025-06-16 09:13:22.447660 +0000 [ websrv_poll ] ERR Failed to get settings json from [http://nextcloud.banya-tanya.me/index.php/apps/richdocuments/wopi/settings?type=systemconfig&access_token=SuDu7tQrXCimXNiie7trAKUjzB1X3OY0&fileId=-1] with status[Moved Permanently]| wsd/DocumentBroker.cpp:1869
2025-06-16 09:13:22.449493+00:00wsd-00001-00032 2025-06-16 09:13:22.449118 +0000 [ websrv_poll ] ERR #-1: Failed to install config [shared-http_nextcloud.banya-tanya.me/index.php/apps/richdocuments/wopi/settings-684ee39857196684ee1d843f33]| wsd/RequestVettingStation.cpp:209
I do not know how to solve this. IT seems a bit weird, because I use https, nginx as the reverseproxy. the address is https, but in the logs i see http