On my local machine, I’m running Collabora Online (master branch with the latest patches), and it’s running fine on its own.
After configuring the Collabora URL in Nextcloud, I see the green message indicating that the server is reachable. However, when I try to open any document, I get this error:
“Unauthorized WOPI host. Please try again later and report to your administrator if the issue persists.”
What I’ve Tried:
I added the IP and domain (e.g. nextcloud.local) of my Nextcloud instance to the <host> tag in the <wopi> section of coolwsd.xml.
Restarted the Collabora container multiple times after config changes.
Verified DNS and IP resolution between both containers.
Additional Info:
I’ve gone through several similar topics in the forums and GitHub issues, but none of the suggested solutions have worked for me so far.
I’d really appreciate any guidance or suggestions. Has anyone managed to get this setup working with a similar environment?
Unauthorized WOPI hosts comes from the wopi_allowlist which creates an ip-based list of hosts allowed to send WOPI requests to Nextcloud. as you are running a dev environment I think adding “allow all” rule like 0.0.0.0/0 should fix the problem
look at our source of truth Collabora integration guide - it doesn’t cover your dev case but maybe it helps you as well.
@Darshan
without DNS and TLS this will not work
there is no way to host Collabora CODE without a valid certificate
you may try self-signed certificates but that will require local DNS to be configured
AFAIK CODE exposes https on port 9980 - but you seem to configure plain http..
as scubamuc mentioned - TLS is required for productive installations - I’m not sure there are additional settings required to setup dev without TLS - I never tried.. I’m aware of issues e.g. with copy&paste which doesn’t work without TLS. Depending on your goal it might be easier to setup a production-like environment with DNS/TLS rather some hand-crafted special which might work completely different..