Artículos con :
Pruébelo en la nube
Centro de ayuda

About the ONLYOFFICE and Nextcloud integration

ONLYOFFICE offers an official connector to integrate ONLYOFFICE Docs with Nextcloud and edit office documents within the cloud storage. You can download the ONLYOFFICE connector from the Nextcloud app store or the ONLYOFFICE GitHub page.

To learn more about the ONLYOFFICE and Nextcloud integration connector and how it works in detail, please visit our API documentation page.

Main features

  • Creating, editing, and viewing documents, spreadsheets, and presentations.
  • Creating and filling out online forms.
  • Sharing files with other users.
  • Sharing files in a Talk chat with drag & drop.
  • Protecting documents with watermarks.
  • Co-editing documents in real-time: two co-editing modes (Fast and Strict), Track Changes, comments, and a built-in chat.
  • Co-editing between several federated Nextcloud instances connected to one Document Server.
  • JWT support to secure your traffic so that no one, besides the users with proper rights, can have access to your documents.

Supported formats

  • For editing and viewing: DOCX, XLSX, PPTX, CSV, TXT, DOCXF.
  • For viewing only: PDF.
  • For filling forms: OFORM.
  • For editing via OOXML conversion: ODT, ODS, ODP, and RTF.
  • For converting to Office Open XML formats using the Convert with ONLYOFFICE option: DOC, DOCM, DOT, DOTX, EPUB, HTM, HTML, ODP, ODT, POT, POTM, POTX, PPS, PPSM, PPSX, PPT, PPTM, RTF, XLS, XLSM, XLT, XLTM, XLTX.

What's new in version 7.5.4


  • Fixed opening the editor in a new browser tab
  • Fixed downloading files on MacOS

The full change log is available here.

Connecting ONLYOFFICE Docs to Nextcloud


  • ONLYOFFICE Docs v6.1 and later.

    You need an instance of ONLYOFFICE Docs that is resolvable and connectable both from Nextcloud and any end clients. ONLYOFFICE Docs must be able to POST to Nextcloud directly.

    Starting from version 4.3.0, ONLYOFFICE Docs and Nextcloud can be installed either on different computers or on the same machine. In case you select the latter variant, you will need to set up a custom port for ONLYOFFICE Docs, as by default both ONLYOFFICE Docs and Nextcloud work on port 80.

    Please refer to the official documentation page to learn more about installing ONLYOFFICE Docs.
  • Nextcloud v24.0.0
  • ONLYOFFICE connector v7.5.0 and later for Nextcloud

Installing the ONLYOFFICE connector for Nextcloud

The Nextcloud administrator can install the integration app from the in-built application market. To do it, please follow these steps:

  1. Click the user name and select Apps.
  2. Go to the Tools category.
  3. Find ONLYOFFICE in the list of available applications.
  4. Click the Download and enable button.

Alternatively, the administrator can install the application manually:

  1. Get the Nextcloud ONLYOFFICE integration app. There are several ways to do that:
    1. Download the latest signed version from the official Nextcloud store.
    2. Download the latest signed version from the application release page on GitHub. E.g.:

      Where vX.X.X is the necessary connector version.

      Unzip the archive, e.g.:

      tar -xvzf vX.X.X.tar.gz

      Rename the folder to onlyoffice, e.g.

      mv onlyoffice-nextcloud-X.X.X onlyoffice
    3. Clone the application source code and compile it yourself:
      git clone onlyoffice
                                          cd onlyoffice
                                          git submodule update --init --recursive
  2. Move the onlyoffice folder to the Nextcloud server apps/ directory (or some other directory used to connect applications):
    cp -r /root/onlyoffice/ /var/www/html/apps/
  3. Go to the apps/ directory:
    cd /var/www/html/apps
  4. Change the owner to update the application right from the Nextcloud web interface:
    chown -R www-data:www-data onlyoffice
  5. In Nextcloud, go to Settings > Apps > Disabled apps and click Enable for the ONLYOFFICE application.

Configuring the ONLYOFFICE connector for Nextcloud

To configure the ONLYOFFICE application settings, please go to Settings > Administration > ONLYOFFICE.

In the Server settings section, specify the following options:

  • ONLYOFFICE Docs address - specify the URL address where the Document Editing Service is installed. This field is obligatory. If you install ONLYOFFICE Docs on a custom port, you must specify the port, e.g.: http://127.0. 0.1:8081/
  • Disable certificate verification (insecure) - check this box to disable the certificate verification and allow Nextcloud to establish connection with ONLYOFFICE Docs if you are using a self-signed certificate for your ONLYOFFICE Docs (otherwise, Nextcloud will not validate a self-signed certificate and will not allow for connection to/from ONLYOFFICE Docs). This is an insecure solution, and we strongly recommend that you replace the certificate with the one issued by some CA.
  • Secret key - specify the secret used to sign the data. For more details, see the Enabling JWT for the ONLYOFFICE and Nextcloud integration section of this article.
  • The Advanced server settings section can be used if your network configuration does not allow for requests between the installed Nextcloud and ONLYOFFICE Docs using the public addresses. In this case, specify addresses for internal requests in the corresponding fields:
    • In the ONLYOFFICE Docs address for internal requests from the server field, specify the address that is used to access Document Editing Service from Nextcloud.
    • In the Server address for internal requests from ONLYOFFICE Docs field, specify the address that is used to access Nextcloud from Document Editing Service.
Settings Settings

Click the Save button. After saving the Server settings, the Common settings, Editor customization settings, Common templates, and Secure view settings sections will appear.

In the Common settings section, you can specify the following options:

  • Restrict access to the editors to following groups - check this box and select user groups that will not be allowed to use the ONLYOFFICE editors in Nextcloud.
  • Use ONLYOFFICE to generate a document preview - check this box for thumbnail generation via ONLYOFFICE. It will take up some disk space.
  • Open file in the same tab - check this box to open a file in the current browser tab. If this option is unchecked, a file will be opened in a new browser tab.
  • Provide advanced document permissions using ONLYOFFICE Docs - check this box to be able to specify extra permissions in the Advanced tab of the document panel: Review and Comment for documents, Custom filter for spreadsheets. For more details, see the Start using ONLYOFFICE Docs within Nextcloud section of this article.
  • Keep metadata for each version once the document is edited function makes it possible to keep metadata and display changes for each document version in the version history. It will take up some disk space. You can use the Clear button to remove the metadata and free up disk space.
  • The default application for opening the format - allows you to check the formats to associate with the ONLYOFFICE editors. The docx, xlsx, and pptx formats are selected by default.
  • Open the file for editing - allows administrators to choose the document formats to edit via conversion to OOXML formats. The csv and txt formats are selected by default.
    Due to format restrictions, some data might be lost when saving to the formats from the list (csv, odp, ods, odt, rtf, txt).

    After you enable the corresponding option, documents in the specified formats will be immediately converted and opened in the ONLYOFFICE editor for editing after clicking on them. If a format is unchecked, the file will be opened for viewing.

In the Editor customization settings section, you can specify the following options:

  • Keep intermediate versions when editing (forcesave) function allows you to send all changes to the storage directly when clicking the Save button in the ONLYOFFICE editors' interface if you want to prevent data loss. When this option is disabled, your changes are saved to the editors' cache automatically.
  • Select the interface elements of the editors that you want to hide / show (ChatMore compact headerFeedback & SupportHelpMonochrome toolbar header).
  • Review mode for viewing function allows you to set the default document review display mode:
    • Markup - for highlighting the proposed changes,
    • Final - for showing with changes applied,
    • Original - for showing the original document without any changes.
  • Default editor theme function allows you to set the default theme: Light, Classic Light, or Dark.
Settings Settings

In the Common templates section, you can click the Add icon icon and upload docx, xlsx, or pptx templates for creating new documents.

You can download or delete a template from this list using the corresponding icons.

Settings Settings

After adding templates in the admin settings, users will be able to choose a template when creating a new document using the the Add icon add button in the Nextcloud interface or via the File > Create new menu in the ONLYOFFICE editors' interface.

In the Security section, you can protect documents by embedding a watermark as well as disable or enable running macros.

After making changes to the application settings, click the Save button located below each section to save the changes.

Enabling JWT for the ONLYOFFICE and Nextcloud integration

To protect documents from unauthorized access, ONLYOFFICE editors use the JSON Web Token (JWT). The token is added in the configuration when the Document Editor is initialized and during the exchange of commands between inner ONLYOFFICE Docs services. The secret key is used to sign the JSON web token and validate the token upon the request to ONLYOFFICE Docs.

To protect your documents, you need to enable the token validation and specify your own secret key in the ONLYOFFICE Docs configuration file, then specify the same secret key in the connector settings.

Step 1: Configure ONLYOFFICE Docs

  1. Open the local.json file with any available text editor.
    • For Linux - /etc/onlyoffice/documentserver/local.json
    • For Windows - %ProgramFiles%\ONLYOFFICE\DocumentServer\config\local.json
    • For Docker – enter the ONLYOFFICE Docs container using the docker exec -it <containerID> bash command and open /etc/onlyoffice/documentserver/local.json
  2. Enable token validation by changing the false value to true in three sections:
    • services.CoAuthoring.token.enable.browser
    • services.CoAuthoring.token.enable.request.inbox
    • services.CoAuthoring.token.enable.request.outbox
  3. Specify your own secret key by replacing the secret value with your own text string in three sections. The secret key must be the same.
    • services.CoAuthoring.secret.inbox.string
    • services.CoAuthoring.secret.outbox.string
    • services.CoAuthoring.secret.session.string
      "services": {
        "CoAuthoring": {
          "token": {
            "enable": {
              "request": {
                "inbox": true,
                "outbox": true
              "browser": true
          "secret": {
            "inbox": {
              "string": "yoursecret"
            "outbox": {
              "string": "yoursecret"
            "session": {
              "string": "yoursecret"
  4. Save your changes.
  5. Restart the services for the config changes to take effect.
    supervisorctl restart all

Step2: Specify the same secret key in the connector settings

In the connector settings, specify the same secret in the Secret key field and save the settings.

Connecting to the demo ONLYOFFICE Docs

Starting from ONLYOFFICE connector version 3.0.0, you can try the ONLYOFFICE online editors within Nextcloud without installing ONLYOFFICE Docs.

To turn the connection on, click the Connect to demo ONLYOFFICE Docs server checkbox and click the Save button.

This is a public test server that will be available during a 30-day period. Don’t share your sensitive data there.

Installing ONLYOFFICE Docs with Nextcloud using Docker Compose

Using Docker Compose, you can quickly and easily deploy the preconfigured version of ONLYOFFICE Docs connected to Nextcloud with all the required dependencies in the Docker containers.

Installing Docker and Docker Compose

  1. Follow this instruction to download and install Docker to your computer. Docker is a program for automating application development and management in container-enabled environments.
  2. Then follow this instruction to download and install the Docker Compose package manager, which allows you to describe and run multi-container applications.

Installing ONLYOFFICE Docs and Nextcloud servers

  1. Download the latest version of the docker-onlyoffice-nextcloud repository. To do so, insert the following line into the Command line interface:
    git clone
  2. Once the repository is downloaded, go to the docker-onlyoffice-nextcloud folder:
    cd docker-onlyoffice-nextcloud
  3. Launch Docker Compose:
    sudo docker-compose up -d
    You might need to wait a couple of minutes until all the containers are up and running after the command above.

In the browser address bar, enter http://localhost to open the Nextcloud setup page and create your admin account. Specify your Login and Password.

Once you're finished with the Wizard, go to the docker-onlyoffice-nextcloud folder and run the configuration script:

sudo bash

Now you can create and edit documents in Nextcloud using ONLYOFFICE Docs without configuring any settings.

Server settings are specified during the deployment, but you can adjust Common settings, Editor customization settings, Common templates, and Secure view settings. Please refer to the Configuring the ONLYOFFICE connector for Nextcloud section to learn more about the available connector settings.

Installing ONLYOFFICE Docs with Nextcloud on a virtual machine using UCS

App appliances introduced by Univention are a distribution format that allows installing systems already packed with components such as ONLYOFFICE Docs and Nextcloud.

Univention, an open-source corporate infrastructure developer, introduced a handy method of installing systems already equipped with third-party components – virtual app appliances. These are VirtualBox or VMware images that include the app, UCS management system and the UCS runtime environment.

The following virtual images contain Univention Corporate Server, Nextcloud and ONLYOFFICE. The apps work out of the box with the additionally created auto-configuration that makes sure that the required ONLYOFFICE add-on in Nextcloud is configured correctly. The installation process is far easier than a classic manual method: no manual steps by the administrator are needed.

Download the necessary components

First, you need to install the hypervisor for the virtual machine. Choose between VMware Workstation Player or VirtualBox and follow the documentation for detailed installation instructions.

Then download ONLYOFFICE-Nextcloud VM for the hypervisor that you’ve chosen.

UCS step 1

Import the virtual appliance

Now open the hypervisor and import the ONLYOFFICE-Nextcloud virtual appliance. This guide describes how to do this in both platforms.

Install the application

Once the image is successfully imported, start the Virtual Machine. Go through the booting process via the installation wizard, following the steps below.

  1. Choose your language and enter the nearest city.
    UCS step 2 UCS step 2

    The wizard will obtain the default system locale, timezone, and keyboard layout.

  2. Set up your domain and network settings. By default, you obtain an IP address automatically. Alternatively, you can specify your IP address, net mask, and gateway manually. Enter the address of the preferred DNS server.
    UCS step 3 UCS step 3
  3. Select your domain settings. The Manage users and permissions directly on this system option is selected by default. It allows creating a new domain in this system. Alternatively, you can connect to the existing UCS or Microsoft Active Directory domain.
    UCS step 4 UCS step 4
  4. Enter your Company name, admin email address for activating ONLYOFFICE (the license file will be sent to this email address), create and confirm a new password for your administrator account.
    UCS step 5 UCS step 5
  5. Specify the fully qualified domain name for this system and the LDAP base:
    UCS step 6 UCS step 6
  6. Review your settings and make sure everything is filled out correctly. Then click the Configure System button.
    UCS step 7 UCS step 7
  7. Once everything is configured, ONLYOFFICE is ready to start in a newly created UCS platform.
    UCS step 8 UCS step 8

    UCS step 9 UCS step 9
  8. Enter your IP address in the browser address bar and upload your ucs.license file received via email.
  9. To log in to your ONLYOFFICE Docs and Nextcloud appliance, click Nextcloud in the Applications section.

    To log in to your Univention Management Console, click LOGIN on the top or System and domain settings in the Administration section.

    Enter Administrator in the login field and the password specified during the registration (see step 4).

    UCS step 10 UCS step 10

Start using ONLYOFFICE Docs within Nextcloud

To create a document:

  1. Open the needed folder within Nextcloud.
  2. Click the Add icon add button.
  3. Choose the needed file type: Document, Spreadsheet, or Presentation.
    Create Create
  4. Type in the document name and press Enter.
  5. Optional. If some templates are added by the administrator, select the necessary template and click Create.
    Template Template

To open a document for editing or viewing:

  1. Open the folder with the needed document.
  2. Click the the document title.

To convert a document to the Office Open XML format:

  1. Open the folder with the needed document.
  2. Click the More icon more button.
  3. Click the Convert with ONLYOFFICE option.
    Convert Convert
    See the full list of the formats which can be converted into OOXML.

To create a form template:

  1. Open the needed folder within Nextcloud.
  2. Click the Add icon add button.
  3. Choose the New form template option.
    Createform Createform
  4. Type in the document name and press Enter.
  5. Choose whether you want to create a form From text document or start from scratch with the Blank option.
  6. You will be redirected to the corresponding ONLYOFFICE Editor.
  7. Save the form template as .docxf to have future access to editing, revising or collaborating.

To create a fillable form and restrict file editing by other users:

  1. Click the Actions icon to the right of the file and choose the Create form option.
    Createoform Createoform

To fill in a form:

  1. Click the Actions icon to the right of the file and choose the Fill in form in ONLYOFFICE option.
    Fillform Fillform
To learn more about forms please read the corresponding articles for creating and filling out forms.

To share a document with a Nextcloud user:

  1. Open the needed folder within Nextcloud and find the necessary file. Click the Share icon Share icon to the right of the file name.

    Alternatively, you can open the file for editing, switch to the Collaboration tab in the editor interface and click the Sharing button on the top toolbar.

    The Sharing tab on the right will open.

    Share Share
  2. In the Name, email, or Federated Cloud ID … field, enter the necessary data and select the necessary user.
  3. Click the Advanced icon icon to the right of the user name to open the pop-up menu.
    Advanced Advanced
  4. To provide the Full access permissions, leave the Allow editing option checked. The user will have Full access rights and will be able to edit the file.
  5. To provide the Read only permissions, uncheck the Allow editing option. The user will have Read only rights and will not be able to edit the file.
  6. To provide the ability to reshare the file, leave the Allow resharing option checked. The user will be able to share the file with other users.
  7. To provide extra permissions only for users who cannot reshare the file, uncheck the Allow resharing option (you might also need to uncheck the Allow editing option).
    The Provide advanced document permissions using ONLYOFFICE Docs must be enabled in the Common settings section of the ONLYOFFICE application.

    Switch to the Advanced tab and click the Advanced icon icon to the right of the user name. Choose the necessary option depending on the file type and the Allow editing option checked/unchecked in the Sharing tab.

    Advanced Advanced
    • for the docx. files and users with Read only permissions, you can choose the following permissions: Review or Comment.
    • for the xlsx. files and users with Full access permissions, you can uncheck the Custom filter permissions.
    • for the xlsx. files and users with Read only permissions, you can choose the following permissions: Comment.
    • for the pptx. files and users with Read only permissions, you can choose the following permissions: Comment.

Connecting ONLYOFFICE Desktop Editors to Nextcloud

ONLYOFFICE allows you to edit the files stored in your Nextcloud account and collaborate on them using both online and desktop editors. Thereby, you can use not only online collaboration tools but also the features available in your desktop application only:

  • protecting documents with a password or a digital signature,
  • sending the currently edited file right from the editor using the Send plugin,
  • inserting audio and video via the Presentation Editor.
It's supposed that you already have Nextcloud server, ONLYOFFICE Docs and the integration app installed and configured.

Launch ONLYOFFICE Desktop Editors. To connect Desktop Editors to your Nextcloud server, perform the following actions:

  1. Switch to the Connect to cloud section on the left side panel.
  2. Click the Nextcloud cloud service button. Alternatively, you can use the Connect now link at the bottom.
    Connect to cloud tab Connect to cloud tab
  3. If you pressed the Nextcloud service button, the Connect to cloud office window opens with the Nextcloud selected. If you used the Connect now link, choose the Nextcloud cloud storage from the drop-down list.
    • in the Cloud office URL field, enter your Nextcloud server domain name or IP address. When ready, click the Connect now button.
      Connect to cloud office window Connect to cloud office window
    • The Nextcloud sign in page will open in a new tab of the Desktop Editors interface.

      • Specify your Username or email and the Password you use to access your Nextcloud account,
      • Click the Log in button.
      Connect to cloud office window Connect to cloud office window

The Files section of your Nextcloud account will open. Now you can edit your existing files and create new ones, share your documents and collaborate on them with Nextcloud users using ONLYOFFICE editors.

To learn more about managing your connected accounts, please refer to this instruction.

Connecting ONLYOFFICE Documents to Nextcloud on iOS or Android

You can connect Nextcloud to the ONLYOFFICE Documents mobile app to work on your Nextcloud documents, spreadsheets, and presentations and edit them collaboratively on-the-go.

It's supposed that you already have Nextcloud server, ONLYOFFICE Docs and the integration app installed and configured.

To connect ONLYOFFICE to Nextcloud on your mobile device, download and install the latest version of the ONLYOFFICE Documents app for iOS or ONLYOFFICE Documents application for Android and perform the following actions:

  1. Go to the Clouds section.
  2. Choose Nextcloud.
  3. Insert the URL address of your Nextcloud server in the Connection URL field.
  4. Enter the login and password of your Nextcloud account.
  5. Press Next.

To edit documents from your Nextcloud using ONLYOFFICE Docs on your mobile device, tap the necessary file name in the file list.

Download Best editors on your website Let your site users view, edit and collaborate
on all types of text, spreadsheet and presentation files
También le podría gustar: