Error when trying to connect (Host violates local access rules)


i did set up onlyoffice docker, the website says "
Thank you for choosing ONLYOFFICE!
Document Server is running"

its a completly different URL, not like “”. When i go to settings, then i type my url, it says: Error when trying to connect (Host violates local access rules)

It uses HTTPS with nginx proxy lets encrypt. both are using it. What do i have to do ?

i added
‘allow_local_remote_servers’ => true,

now i get
Error when trying to connect (cURL error 7: Failed to connect to port 8888: Connection refused (see

the docker runs -p my conf.d/docserver.conf is reverse proxying with TLS 1.3, my nextcloud uses tls 1.2 if that might be important…

1 Like

I’ve got the same error on 2 or 3 NC instances, all also running Docker Compose and OnlyOffice running on the same server (accessing it via /ds-vpath/ on http://onlyoffice-document-server) and an nginx reverse proxy (terminating https)… I also have 'allow_local_remote_servers'=>true but I’m also getting the “Host violates local access rules” error.

On one server, it seems (inexplicably) to allow access to OnlyOffice. I’m trying to work out what’s different between them.

I note also that on all 3 NC instances, I get a series of “blocked” requests for each page load, involving a bunch of js files like main.js, notifications.js, client.js, etc. apparently due to CSP (Content Security Policy). Oddly, this doesn’t seem to be completely breaking things (at least not on the instance where OO is accessible)…

Will report back if I get to the bottom of it.

I still have no new info about that, i am currently using Collabora/code docker image with Apache and Nginx Reverse Proxy to because i dont like the letsencryypt companion ssl configurations. Works good there.