I am running Nextcloud v25 (soon to upgrade to v26) in a docker container. I am also running Onlyoffice V7.2 in a docker container. I am trying to get nextcloud to connect to onlyoffice.
I am running onlyoffice for the sole purpose of using it with nextcloud. It therefore does not require SSL and it is inaccessible to anything outside my intranet.
I tested nextcloud connection using the OnlyOffice demo server, and it works seamlessly.
Unfortunately, I have 2 problems when attempting to connect with my onlyoffice docker instance:
- Nextcloud only allows https connections to onlyoffice. I have gotten around this by using the advanced settings to enter the http version of the URL. So my DOCS address is:
and my internal requests URL is
When I do a save the system accepts the settings. Unfortunately, when I attempt to open a .docx file, I get the follpwing failure message:
ONLYOFFICE cannot be reached. Please contact admin
- I suspect that the reason why the configuration saving is working and the actual access is not is because Nextcloud is testing the configuration using the internal connection, but when it is actually connecting to open a document it is using the DOCS URL. I believe this because when I enter the internal address in the browser, I get the OpenOffice welcome page. When I enter the DOCS URL into the same browser (using Firefox), I get SSL_ERROR_RX_RECORD_TOO_LONG failures. Note that if I use Chrome or Edge, I get ERR_SSL_PROTOCOL_ERROR failures.
I need to do one of two things:
I need to somehow configure Nextcloud’s onlyoffice system to accept http URLs, instead of always forcing the use of https urls (which I don’t need anyway since, as I said, SSL isn’t needed here)
I need to somehow force nextcloud to always use the internal URL to access onlyoffice, so that I can get proper connections when using it to open documents. This I suspect would be the best option.
Can someone help in this matter? How do I get my Nextcloud to work properly with my OnlyOffice installation?