Technical Anshu Home › Tutorials › ONLYOFFICE on Nextcloud
📄 ONLYOFFICE + Nextcloud

Integrate & Install OnlyOffice Document Server on Nextcloud

Your files stay in Nextcloud — the ONLYOFFICE Document Server is the editing engine that opens them. Here the Document Server is self-hosted with Docker and joined to Nextcloud with the connector app, so documents open and edit inside your own cloud.

✍️ Technical Anshu☁️ Nextcloud🎧 Multi-Language Audio
Integrate & Install OnlyOffice Document Server on Nextcloud
🎧 Multi-Language Audio: In the video player, click [Settings] (⚙️) ➔ [Audio track] to select your preferred audio.

📑Chapters

  1. What you are building — files in Nextcloud, editing by ONLYOFFICE
  2. The two addresses this setup needs
  3. Installing the Document Server with Docker
  4. Checking the container is running
  5. Setting the JWT secret
  6. Installing the ONLYOFFICE connector app in Nextcloud
  7. Entering the Document Server address and secret in Nextcloud
  8. First test — edit a document, then try it on mobile

📋 Overview & Step-by-Step Guide

1

Plan the Two Addresses

Nextcloud and the Document Server are two separate services, and each needs its own address. In this setup Nextcloud is at cloud.example.com and the Document Server is at office.example.com — use your own real addresses in their place. Three paths must all work: your browser reaches both services, the Nextcloud server reaches the Document Server, and the Document Server reaches Nextcloud back to fetch and save files. Almost every failure later in this setup is just one of those three paths being blocked, so decide the addresses before installing anything.

2

Install the Document Server with Docker

The Document Server runs as a Docker container from the official ONLYOFFICE image — this is the "no coding" part of the setup: no manual package installation, the container carries everything the editing service needs. Start the container as shown in the video, with JWT switched on so the secret in Step 4 protects it.

Docker Image
onlyoffice/documentserver
📌 The Document Server can live on the same machine as Nextcloud or on its own server or VM — what matters is that the two addresses from Step 1 can reach each other.
3

Check the Container Is Running

Before touching Nextcloud, prove the Document Server works on its own. List the running containers — the Document Server container should be shown as up:

Terminal
sudo docker ps

Then open the Document Server address in a browser. It answers with its status page, which confirms the service is up and reachable — fix any problem here first, because Nextcloud cannot connect to a server that is not answering.

Document Server Address
http://office.example.com
4

Set a Strong JWT Secret

The JWT secret (JWT_SECRET) is the shared password between Nextcloud and the Document Server. Every request between the two is signed with it, so the Document Server only accepts work that really comes from your Nextcloud — and it is the exact same value you will paste into the connector in Step 6.

⚠️ Treat this secret like a password, because that is what it is: make it long, random and unique to this setup, and never share it — not in a comment, a screenshot or a chat. If JWT is left off or the secret leaks, anyone who finds your Document Server address can use your server to open documents.
5

Install the ONLYOFFICE Connector in Nextcloud

Sign in to Nextcloud as an administrator, open Apps, find the ONLYOFFICE connector app and download and enable it. The connector is the bridge: it adds ONLYOFFICE as the editor for office documents inside Files and carries your Document Server settings. The files themselves never move — they stay in Nextcloud storage the whole time.

6

Connect Nextcloud to the Document Server

In Nextcloud go to Settings → ONLYOFFICE. Enter the Document Server address — the same address you tested in Step 3 — and the secret key, which is the JWT secret from Step 4, character for character. Save, and Nextcloud checks the connection to the Document Server.

✅ If the save reports an error, check reachability before changing anything else: from the Nextcloud server, the Document Server address must open, and the Document Server must be able to reach Nextcloud back. A wrong or mismatched secret gives the same kind of error — re-paste it on both sides before digging deeper.
7

Test a Document — Then Secure It Properly

Open a document from Nextcloud Files. It should open in the ONLYOFFICE editor right in the browser: type something, close the document, then open it again and confirm your change was saved back into Nextcloud. Then open the same file from the Nextcloud mobile app — editing runs through this same connection, which is the mobile editing this setup promises.

⚠️ One honest finish line: if this Nextcloud is used over the internet, a Document Server left on plain HTTP is not a finished setup. Documents, the editor traffic and the JWT-signed requests would travel unencrypted, and browsers block an HTTP editor inside an HTTPS Nextcloud page as mixed content. Put both Nextcloud and the Document Server behind HTTPS with valid certificates before real use.

🏷️Topic Search Variables & Keywords

🔍 ONLYOFFICE 🔍 DocumentServer 🔍 Nextcloud 🔍 Docker 🔍 JWTSecret 🔍 SelfHosted 🔍 TechnicalAnshu 🔍 ITAdmin 🔍 ONLYOFFICE Document Server 🔍 Nextcloud Office Editing 🔍 Self Hosted Cloud Office 🔍 Online Document Editor 🔍 Nextcloud ONLYOFFICE Integration
🎙️ Full Transcript — tap to expand

Step-by-Step Troubleshooting Guide & Solutions — Integrate & Install OnlyOffice Document Server on Nextcloud. On-screen demonstration by Technical Anshu.

Self-host the OnlyOffice Document Server with Docker and connect it to Nextcloud with the connector app — document editing inside your own cloud, with the JWT secret, address and test steps explained honestly.

(transcript ends here on the source page — watch the video above for the full walkthrough.)

❓ Frequently Asked Questions

Is this tutorial 100% free to follow?

Yes! All guides and methods demonstrated by Technical Anshu use free, legal, and educational resources.

Can beginners follow this guide?

Absolutely! Every step is demonstrated on-screen with detailed instructions so anyone can follow along easily.

Where can I ask questions if I get stuck?

Leave a comment directly on the YouTube video, and our community and Technical Anshu will help you out.

🚀 Watch the Full Tutorial on YouTube

🚀 Watch the full step-by-step video tutorial on YouTube: https://www.youtube.com/watch?v=Ml79bLRkUoE

Subscribe to Technical Anshu for IT support, Windows troubleshooting, and server management.

▶️ Watch Full Video
This tutorial is based on Technical Anshu's ONLYOFFICE Document Server on Nextcloud video • Stuck on any step? Ask in the video comments — you will get help there 🙏