richdocumentscode: Blank page with Collabora in Nextcloud behind Apache proxy - Mixed content error
I have SNAP NC 19.0.3 installed with Collabora built in code server 4.2.8 and Collabora online 3.7.4. In NC settings it shows a tick and Collabora online server as reachable. If I configure and access NC as http://192.168.1.? it works ok and so does Collabora. However if I configure and access via an Apache Proxy on 192.168.1.12 (https>http) ie, https:// nextcloud.my.domain, NC works fine but opening a document gives me a white page. Noted that in NC settings it shows a tick and Collabora online server is still reachable.
Selecting the demo server works OK. Switching back to built in code server is the same fault again.
I have been doing some searching but can’t find a solution. I am guessing it is either an https>http issue or the proxy but so far I am stumped. BTW, using Onlyoffice & Community Document Server works OK.
PS
On inspecting the Firefox console output it is showing mixed content errors:
Content Security Policy: The page's settings blocked the loading of a resource at http://nc.my.domian/extra-apps/richdocumentscode/proxy.php?status ("connect-src").
So how do I get the Collabora code server to work via https>http apache proxy or is it not possible with Nextcloud Snap?
About this issue
- Original URL
- State: open
- Created 4 years ago
- Comments: 17
The proxy was a red hearing. A fresh standard non snap install of NC 20 with richdocument installed gives a working Collabora. Then adding a self signed SSL to Apache and adjusting the NC config for SSL gives a mixed content error when loading a doc and Collabora.
Is there anyway to get richdocument to reply using HTTPS as setup on NC rather than ignoring and using http?
Finally I found a solution here
Add
'overwriteprotocol' => 'https'to your config.phpSame here. I have a reverse-proxy in front of Nextcloud, that does the https encryption, and Nextcloud is on another machine (exposed with http). This setup works fine for all other Nextcloud apps.
When trying to open a document handled by Collabora, the browser tries to directly access the nextcloud server (with http) which is blocked (because of mixed content)
Nextcloud 21.0.2 with Collabora Online 4.1.1 and built-in CODE 6.4.806 (arm64 version)