I can’t work this out. I have got Collabora working from docker HTTPS but OnlyOffice wont work.
I have Centos 7, separate domain on the same machine for collabora and onlyoffice.
I had OnlyOffice working through http browser, but can’t use that in my NextCloud because it is HTTPS only (I assume that is the problem anyway, from “ONLYOFFICE cannot be reached. Please contact admin” )
Copy certs and various other combinations wouldn’t work for me. I tried using Collabora proxy directives but didn’t really know what I was doing, didn’t work.
I really only need the same kind of instructions as the collabora, for Centos 7, docker, apache and https with a valid cert (Let’s Encrypt).
Some guides say to use /app/ or /opt/ but neither works I think due to permission errors. Putting the DocumentServer directory in /home/APACHE-USER/ is what worked. I am using Virtualmin which puts all the virtual servers into /home/someuser/
So once I did that and copied the .csr and .key files from /home/USER/ into /home/USER/DocumentServer/data/certs/ and rename them to onlyoffice.csr onlyoffice.key then it loaded through the https:// address. Once Nextcloud OnlyOffice config had the right address and port it all worked fine without any proxy directives or other redirects.
Also be aware that mounting the lib directory didn’t work. I can only mount /data/ and /log/
I only wish OnlyOffice would allow guest editing of documents via public links in the same way collabora does. And also open .odt without conversion.
So my complete working command is something like this