Collabora - strange host in POST request

Hi,

I’ve set up a CODE server and wanted to connect it to my nextcloud. Both Nextcloud and CODE servers run in LXC containers behind nginx reverse proxy. In Collabora Online settings my server’s URL is “https://collabora.mydomain.com/” and it says that “Collabora Online server is reachable”.

When I try to open a document, I get an error “https ’s server IP address could not be found”. Example post request looks like https://https//collabora.mydomain.com/browser/15dc78e/cool.html?WOPISrc=https://nextcloud.mydomain.com/index.php/apps/richdocuments/wopi/files/443888_ochjyvqj0aq4&title=a.odt&lang=en&closebutton=1&revisionhistory=1. Clearly the host name in this request is wrong, but why? Where does the redundant “https//” (with missing colon) come from?

Manually setting the public_wopi_url with occ config:app:set richdocuments public_wopi_url --value="https://collabora.mydomain.com" partially solved the problem. Now I’m getting another error: Content Security Policy: The page’s settings blocked the loading of a resource at https://https//collabora.mydomain.com/browser/15dc78e/cool.html?WOPISrc=https%3A%2F%2Fnextcloud.mydomain.com%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F443873_ochjyvqj0aq4&title=New%20document.odt&lang=en&closebutton=1&revisionhistory=1 (“form-action”).

1 Like