Integrating
Where can I find integration examples for ONLYOFFICE Docs?
The examples of integration of ONLYOFFICE Docs with your own website can be found here. You can choose among different web development programming languages:
- .Net (C#) / .Net (C# MVC)
- Java
- Java Spring
- Node.js
- PHP
- PHP (Laravel)
- Python
- Ruby
- Go
- Java integration SDK
The examples will show where to get the source codes, how to install and set up the working examples for integrating ONLYOFFICE Docs into your website written with the help of one of these programming languages.
If you want to connect ONLYOFFICE Docs to one of the existing document management services, you can see the ready-made connectors for the following services:
- Alfresco
- Chamilo
- Confluence
- Drupal
- HumHub
- Liferay
- Mattermost
- Moodle
- Nextcloud
- Nuxeo
- Odoo
- ownCloud
- Plone
- Redmine
- SharePoint
- Strapi
- SuiteCRM
- WordPress
Most of the connectors are available from the corresponding service application store and are easy to install. Just follow the step-by-step instructions at the connector page and connect ONLYOFFICE Docs to your service.
Which paths should I specify when integrating ONLYOFFICE Docs with my website?
After you download and unpack the examples for integration ONLYOFFICE Docs with your website, you need to open the source codes and replace all the instances of the https://documentserver/ string with the actual address of your installed ONLYOFFICE Docs.
What settings should be used when connecting ONLYOFFICE to ownCloud/Nextcloud via a local and public network?
When connecting your ownCloud/Nextcloud installation to ONLYOFFICE Docs, you need to make sure that the server with ONLYOFFICE Docs installed is accessible both for the internet browsers and ownCloud/Nextcloud installations, i.e. the requests can be sent to and the responses can be accepted from the computer with ONLYOFFICE Docs installed.
The interaction scheme between ownCloud installation and ONLYOFFICE Docs is available here. If you use Nextcloud, visit this page to see how you can properly set up your server.
ONLYOFFICE Docs cannot download a file from my server that uses a self-signed certificate. What should I do?
By default, ONLYOFFICE Docs verifies the certificate of the server it downloads files from, so a self-signed certificate is rejected. This applies to any integration. For testing, you can turn the verification off: set the services.CoAuthoring.requestDefaults.rejectUnauthorized parameter to false in the ONLYOFFICE Docs local.json configuration file and restart the ONLYOFFICE Docs services.
This setting is insecure and is meant for testing only. For production, replace the certificate with one issued by a trusted CA and set rejectUnauthorized back to true.
If ONLYOFFICE Docs itself uses a self-signed certificate, the integration has to accept it as well. For ownCloud and Nextcloud, see the self-signed certificate instructions for ownCloud and Nextcloud.