onlyoffice-nextcloud
onlyoffice-nextcloud copied to clipboard
Connect OnlyOffice Workspace to Nextcloud
I installed Onlyoffice Workspace (from here https://www.onlyoffice.com/de/download.aspx?from=downloadintegrationmenu#bundles) on a separate server running ubuntu to use it as a document server for my existing Nextcloud instance.
The OO Workspace is running fine (creating and editing document works) and the document server is reachable under the URL https://oo.MYDOMAIN.de/ds-vpath/
Now I am struggling to connect it to my Nextlcoud.
When I paste the URL to the config part of OO in NC it receive the following error: "Error when trying to connect (Error occurred in the document service: Invalid token)"
Also setting a token and specifying it in the file /etc/onlyoffice/documentserver/default.json
doesn't work.
Does anybody have an idea, what I am doing wrong here? Or is it just impossible to connect OO Workspace to a NC?
Hello, Workspace uses a custom header (AuthorizationJwt) for passing the JWT token. In order for your setup to work, the header needs to be specified in Nextcloud's configuration. This can be done by adding the following section to the config.php file located in [your-nextcloud-installation]/config/:
'onlyoffice' =>
array (
'jwt_header' => 'AuthorizationJwt',
),
Thanks for you quick response, @SergeyKorneyev! That worked well! I had to enter the Header (?) JWT key (don't remember where I found it) in the Nextcloud config now, but the connection is established!
I'm having a new problem though. When I try to open a document in Nextcloud, the OO server refuses the connection. oo.MYDOMAIN.de refused to connect.
Any idea, what I have to change to also mage this work?
same problem, i want to access my onlyoffice community from an external nextcloud instalation, in this case, a odroidhc1, and i follow some post here: I created a local.json with the basic comands, and also attach within config.php:
'onlyoffice' => array ( 'jwt_header' => 'AuthorizationJwt', ),
But nothing happend after restart server (systemctl didnt work for me).
Any ideas?
NextCloud 22, OnlyOffice working on Debian 10