Author: Kseniya Fedoruk
Last Updated: Thu, Jul 14, 2022ONLYOFFICE Docs is an open-source office suite that comprises collaborative editors for text documents, spreadsheets, and presentations, form creator, PDF viewer, and converter. The core format is OOXML, so the editors are compatible with DOCX, XLSX, and PPTX files. You can connect and use the suite within multiple cloud services, including CMS frameworks (WordPress, Strapi, Drupal), collaboration platforms (ONLYOFFICE Workspace, Nextcloud, Seafile, Confluence, Alfresco), issue trackers (Jira, Redmine), e-learning solutions (Moodle, Chamilo, HumHub), and others.
Netxcloud is an open-source content management platform. You can also store and share documents, make audio and video calls, and manage tasks, emails, and calendars. Netxcloud apps ecosystem allows you to add various tools such as Markdown Editor, Maps, Notes, and more.
When you connect ONLYOFFICE Docs to the Nextcloud instance, you can edit and co-author Office documents from the Nextcloud frontend.
Both solutions are available on the Vultr Marketplace as One-Click Apps.
To finalize the configuration for ONLYOFFICE Docs, use an SSH client like OpenSSH.
ssh root@your_instance_ip
in the terminal and type yes
.If you have multiple SSH keys, specify the path to your private key:
$ ssh -i /path/to/private/key root@your_instance_ip
The onlyoffice-document-server Docker container will be started automatically.
To switch ONLYOFFICE Docs to HTTPS, get a Let's Encrypt SSL/TLS certificate using certbot.
Install certbot.
$ sudo snap install --classic certbot
$ sudo ln -s /snap/bin/certbot /usr/bin/certbot
Get and install the SSL certificate.
$ docker stop <CONTAINER ID>
$ certbot certonly --standalone --agree-tos --no-eff-email --email youremail@example -d example.com
$ mkdir -p /app/onlyoffice/DocumentServer/data/certs
$ cp /etc/letsencrypt/live/<your-domain.com>/fullchain.pem onlyoffice.crt
$ cp /etc/letsencrypt/live/<your-domain.com>/privkey.pem onlyoffice.key
$ chmod 400 /app/onlyoffice/DocumentServer/data/certs/onlyoffice.key
$ docker start <CONTAINER ID>
Once done, ONLYOFFICE Docs will be available at https://<your domain name>/
.
You have two options for this installation.
Download the latest version of the connector (integration app) from the official Nextcloud App Store.
Clone the application source code and compile it yourself.
$ git clone https://github.com/ONLYOFFICE/onlyoffice-nextcloud.git onlyoffice
$ cd onlyoffice
$ git submodule update --init --recursive
Move the onlyoffice folder to the Nextcloud server apps/ directory:
$ cp -r /root/onlyoffice/ /var/www/html/apps/
Go to the apps/ directory:
$ cd /var/www/html/apps
Change the owner to update the application from Nextcloud web interface:
$ chown -R www-data:www-data onlyoffice
Access your Nextcloud, open the page with Disabled apps, and click the Enable button for the ONLYOFFICE application.
Nextcloud administrators can install the integration app right from the in-built application market. To do that, click your user icon in the upper right corner, switch to + Apps, find ONLYOFFICE in the list of available applications (section 'Office & text'), and click the Download and enable button.
In Nextcloud, click your user icon in the upper right corner, go to Settings and find the ONLYOFFICE settings page in the Administration section.
In the Server settings, specify the address of ONLYOFFICE Docs. Make sure the Nextcloud server address is accessible from ONLYOFFICE Docs for correct work.
To protect documents from unauthorized access, enter the secret key in the corresponding field. Specify the same secret key in the ONLYOFFICE Docs config file to enable the validation.
Sometimes your network configuration might not allow the requests between installed Nextcloud and ONLYOFFICE Docs using the public addresses. The Advanced server settings section allows you to set the ONLYOFFICE Docs address for internal requests from Nextcloud server and the returning Nextcloud address for internal requests from ONLYOFFICE Docs.
Save the settings and continue with the Common settings.
All docx, xlsx and pptx files are opened directly for editing; all other formats require a preliminary conversion. The Open the file for editing setting allows you to select csv, odp, ods, odt, rtf and txt formats to be to auto-converted and opened directly for editing as well.
Scroll down to the Editor customization settings section.
In the Common templates section, you click the plus icon and upload docx, xlsx, or pptx templates for creating new documents.
In the Security settings, enable or disable the use of macros, and activate watermarking to protect any confidential or sensitive information documents might contain.
You can replace the default watermark text with your own using the supported placeholders {userId} and {date}. These placeholders will be displayed individually for each user when opening a file.
You can also define groups to differentiate users for whom the watermark will be displayed and select types of shares where the watermark has to be shown.
With ONLYOFFICE Docs integrated, you can:
You have connected the ONLYOFFICE Docs and Nextcloud Vultr One-Click Apps, and now you can start editing and collaborating on documents without switching between the applications.