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
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
This app enables users to edit office documents from Nextcloud using ONLYOFFICE Docs packaged as Document Server - Community or Enterprise Edition.
The app allows to:
For viewing:
For editing:
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.
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:
Go to the Nextcloud server apps/ directory (or some other directory used):
cd apps/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:
git clone https://github.com/ONLYOFFICE/onlyoffice-nextcloud.git onlyoffice
cd onlyoffice
git submodule update --init --recursiveRun the build (only if you chose to clone on the previous step):
npm install
npm run buildInstall Composer dependencies (only if you chose to clone on the step 2):
composer install
composer scope-dependencies
rm -rf vendor/firebase
composer dump-autoloadChange the owner to update the application right from Nextcloud web interface:
chown -R www-data:www-data onlyofficeIn Nextcloud open the ~/settings/apps/disabled page with Not enabled apps by administrator and click Enable for the ONLYOFFICE application.
There are three ways to configure ONLYOFFICE integration settings in Nextcloud.
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.
Use the occ commands to set ONLYOFFICE settings for Nextcloud in the following way:
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 (the watermark_* keys) are an exception: they are stored under the files app, not onlyoffice. Set them with files as the app id:
php occ config:app:set files {watermark_setting_key} --value={setting_value}Directly define settings in the config/config.php file under the 'onlyoffice' array:
"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.
| 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 | + | + | - |
|
No open issues yet, or sync has not completed.