Nextcloud15 and onlyoffice intergration

Issues during installation, usage and configuring
Post Reply
rajbps
Posts: 6
Joined: Tue Mar 05, 2019 12:14 am

Nextcloud15 and onlyoffice intergration

Post by rajbps » Tue Mar 05, 2019 12:49 am

Hi Team,

I managed to install only office on a centos7 box by following the guide on the link :

https://vitux.com/centos-onlyoffice-document-server/

The only bit that I did not do was the lets encrypt part. I instead created and used a self sign cert. I can access the web page with https and get the page saying

Thank you for choosing ONLYOFFICE!
Document Server is running

I have nextcloud version 15 installed. I have enabled the onlyoffice app.

When I go to the onlyoffice page to add the address of the onlyoffice server, I get the following error

Error when trying to connect (Bad Request or timeout error)

Can anyone please advise.

Regards,

Rajbps

Maxim
Posts: 1945
Joined: Tue Oct 11, 2016 2:34 pm

Re: Nextcloud15 and onlyoffice intergration

Post by Maxim » Wed Mar 06, 2019 8:04 am

Hello!
created and used a self sign cert
this is the reason
there are two solutions
1 - to avoid https
Open the config file /nextcloud/config/config.php
And add a section:

Code: Select all

'onlyoffice' =>
  array (
    'verify_peer_off' => TRUE,
  )
2 - to make work with self-signed SSL certs
- put ssl certs into ca-bundle
/usr/local/share/ca-certificates
- Run update-ca-certificates
3. add in following configs
/etc/supervisor/conf.d/onlyoffice-documentserver-converter.conf
/etc/supervisor/conf.d/onlyoffice-documentserver-docservice.conf
flag --use-openssl-ca in the string with parameters
4. Restart supervisor and all services

Code: Select all

service supervisor restart

Code: Select all

supervisorctl restart all

rajbps
Posts: 6
Joined: Tue Mar 05, 2019 12:14 am

Re: Nextcloud15 and onlyoffice intergration

Post by rajbps » Wed Mar 06, 2019 1:15 pm

Hi Maxim,

Thanks for the guidance and I appologise in advance for my next question.

You mentionned to make it work with self sign ssl

"put ssl certs into ca-bundle" is this both certs , 1 from nectcloud and the other from onlyoffice itself? Also that is on the onlyoffice box only or both onlyoffice and nextcloud.

Last if I may, I am running centos 7 on both boxes, how to I do "put ssl certs into ca-bundle"

Regards,

rajbps

rajbps
Posts: 6
Joined: Tue Mar 05, 2019 12:14 am

Re: Nextcloud15 and onlyoffice intergration

Post by rajbps » Wed Mar 06, 2019 2:30 pm

Hi Maxin,

Thanks for your guidance. I apopoligise for the possibly silly next question.

You mentionned:

"put ssl certs into ca-bundle" is that the 2 certs one from the nextcloud box and the other from the onlyoffice box.

"/usr/local/share/ca-certificates
- Run update-ca-certificates
3. add in following configs
/etc/supervisor/conf.d/onlyoffice-documentserver-converter.conf
/etc/supervisor/conf.d/onlyoffice-documentserver-docservice.conf"

This bit I assume its only on the onlyoffice box itself.

Last I am new to this, could you advise on how to do this please on a centos 7 box

"put ssl certs into ca-bundle"

Thanks again for the help

Rajbps

Post Reply