Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
O

onlyoffice-nextcloud

> 前端框架
Open source

The app which enables the users to edit office documents from Nextcloud using ONLYOFFICE Document Server, allows multiple users to collaborate in real time and

746 stars0 likes2 views
WebsiteGitHub

About

The app which enables the users to edit office documents from Nextcloud using ONLYOFFICE Document Server, allows multiple users to collaborate in real time and

ONLYOFFICE app for Nextcloud

This app enables users to edit office documents from Nextcloud using ONLYOFFICE Docs packaged as Document Server - Community or Enterprise Edition.

Features ✨

The app allows to:

  • ✍️ Create and edit text documents, spreadsheets, and presentations.
  • Create and edit PDF forms.
  • ✂️ Edit PDF files.
  • View diagram files.
  • Share files to other users.
  • Protect documents with watermarks.
  • Co-edit documents in real time: two co-editing modes (Fast and Strict), Track Changes, comments, and built-in chat. Co-editing is also available between several federated Nextcloud instances connected to one Document Server.
  • Enable AI assistants in the editors to work faster and more efficient (it's possible to connect any AI provider).

Supported formats

For viewing:

  • WORD: DOC, DOCM, DOCX, DOT, DOTM, DOTX, EPUB, FB2, FODT, HML, HTM, HTML, HWP, HWPX, MD, MHT, MHTML, ODT, OTT, PAGES, RTF, STW, SXW, TXT, WPS, WPT, XML
  • CELL: CSV, ET, ETT, FODS, NUMBERS, ODS, OTS, SXC, TSV, XLS, XLSB, XLSM, XLSX, XLT, XLTM, XLTX
  • SLIDE: DPS, DPT, FODP, KEY, ODG, ODP, OTP, POT, POTM, POTX, PPS, PPSM, PPSX, PPT, PPTM, PPTX, SXI
  • PDF: DJVU, DOCXF, OFORM, OXPS, PDF, XPS
  • DIAGRAM: VSDM, VSDX, VSSM, VSSX, VSTM, VSTX

For editing:

  • WORD: DOCM, DOCX, DOTM, DOTX
  • CELL: XLSB, XLSM, XLSX, XLTM, XLTX
  • SLIDE: POTM, POTX, PPSM, PPSX, PPTM, PPTX
  • PDF: PDF

Installing ONLYOFFICE Docs

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

ONLYOFFICE Document Server and Nextcloud can be installed either on different computers, or on the same machine. If you use one machine, set up a custom port for Document Server as by default both ONLYOFFICE Document Server and Nextcloud work on port 80.

You can install free Community version of ONLYOFFICE Docs or scalable Enterprise Edition.

To install free Community version, use Docker (recommended) or follow these instructions for Debian, Ubuntu, or derivatives.

To install Enterprise Edition, follow instructions here.

Community Edition vs Enterprise Edition comparison can be found here.

To use ONLYOFFICE behind a proxy, please refer to this article.

You can also use our Docker installation to install pre-configured Document Server (free version) and Nextcloud with a couple of commands.

Alternatively, you can opt for ONLYOFFICE Docs Cloud which doesn't require downloading and installation. To get ONLYOFFICE Docs Cloud, get started here.

Installing ONLYOFFICE app for Nextcloud

The Nextcloud administrator can install the app from the in-built application market. For that go to the user name and select Apps.

After that find ONLYOFFICE in the list of available applications and install it.

If the server with the Nextcloud installed does not have an Internet access, or if you need it for some other reason, the administrator can install the application manually. To start using ONLYOFFICE Document Server with Nextcloud, the following steps must be performed:

  1. Go to the Nextcloud server apps/ directory (or some other directory used):

    bash
    cd apps/
  2. Get the ONLYOFFICE app for Nextcloud. There are several ways to do that:

    a. Download the latest signed version from the official store for Nextcloud.

    b. Or you can download the latest signed version from the application release page on GitHub.

    c. Or you can clone the application source code and compile it yourself:

    bash
    git clone https://github.com/ONLYOFFICE/onlyoffice-nextcloud.git onlyoffice
    cd onlyoffice
    git submodule update --init --recursive
  3. Run the build (only if you chose to clone on the previous step):

    bash
    npm install
    npm run build
  4. Install Composer dependencies (only if you chose to clone on the step 2):

    bash
    composer install
    composer scope-dependencies
    rm -rf vendor/firebase
    composer dump-autoload
  5. Change the owner to update the application right from Nextcloud web interface:

    bash
    chown -R www-data:www-data onlyoffice
  6. In Nextcloud open the ~/settings/apps/disabled page with Not enabled apps by administrator and click Enable for the ONLYOFFICE application.

Configuring ONLYOFFICE app for Nextcloud ️

There are three ways to configure ONLYOFFICE integration settings in Nextcloud.

User interface (UI)

Settings can be modified directly via the Nextcloud admin panel.

For example, in Nextcloud open the ~/settings/admin/onlyoffice page with administrative settings for ONLYOFFICE section. Enter the following address to connect ONLYOFFICE Document Server:

https:///

Where the documentserver is the name of the server with the ONLYOFFICE Document Server installed. The address must be accessible for the user browser and from the Nextcloud server. The Nextcloud server address must also be accessible from ONLYOFFICE Document Server for correct work.

Sometimes your network configuration might not allow the requests between installed Nextcloud and ONLYOFFICE Document Server using the public addresses. The Advanced server settings allows to set the ONLYOFFICE Document Server address for internal requests from Nextcloud server and the returning Nextcloud address for the internal requests from ONLYOFFICE Document Server. You need to enter them in the appropriate fields.

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 in the Nextcloud administrative configuration. In the ONLYOFFICE Docs config file, specify the same secret key and enable the validation.

occ commands

Use the occ commands to set ONLYOFFICE settings for Nextcloud in the following way:

bash
php occ config:app:set onlyoffice {setting_key} --value={setting_value}

where {setting_key} is the key of the ONLYOFFICE integration setting, and {setting_value} is the corresponding value.

Watermark settings

Watermark settings (the watermark_* keys) are an exception: they are stored under the files app, not onlyoffice. Set them with files as the app id:

bash
php occ config:app:set files {watermark_setting_key} --value={setting_value}

config.php

Directly define settings in the config/config.php file under the 'onlyoffice' array:

php
"onlyoffice" => array (
    {setting_key} => {setting_value},
)

where {setting_key} is the key of the ONLYOFFICE integration setting, and {setting_value} is the corresponding value.

The tables below list all available Nextcloud settings along with the supported configuration methods.

Common settings

Setting key UI name / Description Example UI occ config.php
demo Connect to demo ONLYOFFICE Docs server - + - -
DocumentServerUrl ONLYOFFICE Docs address

The connector uses this setting from the config.php file if no value is specified in the application configuration via UI or occ command. | "http:///" | + | + | + | | DocumentServerInternalUrl | ONLYOFFICE Docs address for internal requests from the server

The connector uses this setting from the config.php file if no value is specified in the application configuration via UI or occ command. | "http:///" | + | + | + | | StorageUrl | Nextcloud address available from document server | "http:///" | + | + | + | | jwt_secret | Secret key (leave blank to disable) | "your_secret_key" | + | + | + | | jwt_header | JWT header | "AuthorizationJWT" | + | + | + | | sameTab | Open file in the same tab

The Open in ONLYOFFICE action will be added to the file context menu. You can specify this action as default and it will be used when the file name is clicked for the selected file types. | false | + | + | - | | enableSharing | Enable sharing

If you forcibly enable this setting via occ command, the editors will be opened in a new tab even when sameTab === true, which is not the intended behavior. | true | + | + | - | |

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

PHPintegrationnextcloudonlyoffice

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架