So I have made great progress: I have onlyoffice running in an LXC container, fully https accessible and everything works brilliantly from nextcloud. I use haproxy at the front of my LAN as I have a nextcloud, WordPress and now an onlyoffice documents server - all on different LAN Ipâs. haproxy directs traffic well. So far, so good.
What I think I need to do though is restrict access to the onlydocument server so that only requests from my nextcloud instance (cloud.mydomain.com) are accepted by onlyoffice, otherwise anyone can connect to it and edit documents to their hearts content - which would waste my resource but also expose a potential security issue. As it is, anyone can access my document servr via a web portal at onlyoffice.mydomain.com - and I just know thatâs not good.
Does anyone know how I can restrict access to my documents server to be exclusively from my cloud.mydomain.com instance?
Ipfilter parameter can be an option to restrict access to the document server. You can find this parameter in /etc/onlyoffice/documentserver/default.json
Ok, I tried the token. I have seen the âsecret codeâ in the nextcloud app and thought it would be good to use. So I pasted this in my document file at /etc/onlyoffice/documentserver/default.json:
So I have still not successfully blocked www access to my document server, but I have finally cracked the simple) code for securing working access to the editors, which is better than where I was.
On your onlyoffice document server, you have to edit this file:
/etc/onlyoffice/documentserver/default.json
And do a search for âsecretâ (and in this case, you DO NEED the quotes as otherwise you get several hits). This will take you to the âsecretâ: json section, where there are three passwordsâŚall of which are called âsecretâ. These are the DEFAULT secret passwords needed to enable the editors to function. Change these three entries to a new, identical password. Then goto nextcloudâ>settingsâ>basic-settings and click on the advanced options for the onlyoffice app. Just find the âsecretâ entry and change it to your password in the json config file (this time WITHOUT the quotes of course) , then click save. Now your document server is password protected.
If I ever figure out how to block access from anything but my nextcloud instance, I will update this thread. Right now, things are better than they were (anyone could have used my onlyoffice server, but now at least itâs password-protected).
Apologies for being so slow to figure this out. As old as I am, I am a newbie to running a server.
I tried the following :
Running my nextcloud and onlyoffice behind a proxy, which is only forwarding to the nextcloud instance. That means, the onlyoffice instance is isolated.
The two services do link together (I can setup the onlyoffice integration app via the settings successfully). However, when editing documents, we need direct access to the onlyoffice server. Nextcloud isnât forwarding anything at that point. Your browser directly queries the onlyoffice server. So ya. I guess we are stuck with the app secret security.