You will need an instance of ONLYOFFICE Docs (Document Server) that is resolvable and connectable both from Nuxeo and any end-clients. If that is not the case, use the official ONLYOFFICE Docs documentation page. ONLYOFFICE Docs must also be able to POST to Nuxeo directly.
The easiest way to start an instance of ONLYOFFICE Docs is to use Docker.
Install it from marketplace.
You can also install it using nuxeoctl.nuxeoctl mp-install /path/to/onlyoffice-nuxeo-package-x.x.zip
Open the nuxeo.conf file and enter the name of the server with ONLYOFFICE Docs installed:
where the documentserver is the name of the server with ONLYOFFICE Docs installed. The address must be accessible from the user browser and from the Nuxeo server. The Nuxeo server address must also be accessible from ONLYOFFICE Docs for correct work.
Starting from version 7.2, JWT is enabled by default and the secret key is generated automatically to restrict the access to ONLYOFFICE Docs and for security reasons and data integrity. Specify your own secret key by adding the onlyoffice.jwt.secret=yoursecret line to the nuxeo.conf file. In the ONLYOFFICE Docs config file, specify the same secret key and enable the validation.
To build Nuxeo plugin, the following steps must be performed for Ubuntu:
The stable Java version is necessary for the successful build. If you do not have it installed, use the following commands to install Open JDK 8:
sudo apt-get update sudo apt-get install openjdk-8-jdk
Install the latest Maven. Installation process is described here.
Download the Nuxeo ONLYOFFICE integration plugin source code:
git clone https://github.com/onlyoffice/onlyoffice-nuxeo.git
Compile Nuxeo ONLYOFFICE integration plugin:
cd onlyoffice-nuxeo/ mvn clean install
Built package is located here ./onlyoffice-nuxeo-package/target/onlyoffice-nuxeo-package-x.x.zip.
The ONLYOFFICE integration follows the API documented here.
Download the Nuxeo ONLYOFFICE integration plugin here.