Nextcloud version (eg, 12.0.2) : NextCloud 16.0.4.1
Operating system and version (eg, Ubuntu 17.04) : Centos7
Apache or nginx version (eg, Apache 2.4.25) : Apache/2.4.6 (CentOS)
PHP version (eg, 7.1) : 7.2.10
Good Morning,
I have mounted a Nextcloud 16.0.4 with an Onlyoffice and internally in the company it works correctly, the problem comes when I try to open a document from Nextcloud (docx, xlsx, etc …) from outside the business network the following error message comes out “The ONLYOFFICE cannot be accessed. Please contact admin” and it does not load the file, I repeat from within the company it works correctly. The question is to have the ONLYOFFICE url published on the internet so that files can be edited from outside the company network or once connected from outside to the Nextcloud, this is the one who manages the connection internally with the ONLYOFFICE server.
get a DNS resolution for your OnlyOffice-Instance with the same name as your internal one
have your firewall allow access to port 443 from the internet to your OnlyOffice instance
Plus all the other pre-cautions, you would have to consider when making any server instance available to the internet. If in doubt, consult your network/firewall admin.
Well… OnlyOffice doesn’t work without proper certificates anyway - or at least, you will have to jump through some hoops to make is work without one, so I assumed that the certificate is already in place…
Indeed guys, publish the dns on the internet and work perfectly from outside the company, regarding the certificates I use a HAPROXY as front of everything and from there I apply the Lets Encryp certificates.
Thanks for all. Greetings!
PD: by the way one more query, it does not allow me to save the files as such but as a copy, is it normal?
I do have a very similar config and it’s working perfectly. If OnlyOffice refuses to save the documents back to NC means, that there’s something wrong with your setup.
What doesn’t work is a “split-configuration” where one partruns on https and the other doesn’t. To work correctly all connections must be https… internal and external.