Onlyoffice Error is unable to load editor

I’m having some problems with the Onlyoffice app. It won’t load the document and throws an error.

I’ve installed the document server docker on a different machine than my Nextcloud server. The document server shows the green status page. I have the document server behind a reverse proxy so I can do HTTPS easier.

In the settings page I put https://office.mydomain.com in the “Document Editing Service address” field. The page accepts it. In the file manager I can create a docx and open it. The editor loads and then presents an unknown error. In the console it loaded a resource from the document server, but the resource wasn’t from the https://office.mydomain.com domain but was the document server’s HTTP IP address. I think this is where the error is coming from.

Blocked loading mixed active content “http://192.168.0.66/cache/files/3370126106/Editor.bin/Editor.bin?md5=MWbCCzUtKBel-zNjvbozaA==&expires=1549760571&disposition=attachment&ooname=output.bin”

How do I fix this?


I’m on NC v14.0.4.2 and have whatever the most recent version of the Onlyoffice app is.

I am encountering the same (or very similar) problem. Did you ever find a solution to this that you could share?

Bad Gateway for Collabora with Nextcloud deployed via docker-compose

I had a similar problem when using Nextcloud 18 with the built-in document server. My fix was to edit the config.php of nextcloud, adding the following 2 lines:

'overwrite.cli.url' => 'https://nextcloud.mydomain.com,
'overwriteprotocol' => 'https',

Thanks @Greinet. I also had to add those lines to the config.php file to get my configuration to work, but I forgot to mention it.

In addition to Andrew’s solution above, make sure to change your ONLYOFFICE Docs address settings (Settings > Administration > Onlyoffice) to https:// as well.