Technical Anshu Home › Tutorials › Nextcloud + OnlyOffice
☁️ Nextcloud + OnlyOffice

Setup Nextcloud with OnlyOffice Server 🔥 Complete Integration Guide

Build your own self-hosted alternative to Google Docs and Google Sheets: install a Nextcloud server and an OnlyOffice Document Server, connect the two with the official connector app and a JWT secret, secure everything with HTTPS, and make your first real edit — with every file staying on your own server.

✍️ Technical Anshu☁️ Self-Hosted Office🎧 Multi-Language Audio
Setup Nextcloud with OnlyOffice Server 🔥 Complete Integration Guide
🎧 Multi-Language Audio: In the video player, click [Settings] (⚙️) ➔ [Audio track] to select your preferred audio.

📑Chapters

  1. What you are building — your own Google Sheets and Docs alternative on your own server
  2. Planning the two hostnames — cloud.example.com for Nextcloud and office.example.com for OnlyOffice
  3. Installing the Nextcloud server
  4. Installing the OnlyOffice Document Server
  5. Checking the Document Server is alive with the healthcheck URL
  6. Installing the ONLYOFFICE connector app inside Nextcloud
  7. Connecting both servers — the Document Editing Service address and the JWT secret
  8. Setting up HTTPS on both servers
  9. The first real edit — opening and editing a file inside Nextcloud

📋 Overview & Step-by-Step Guide

1

Plan the Two Servers and Hostnames

This setup has two parts that work together. Nextcloud stores your files and user accounts, and the OnlyOffice Document Server does the actual document and spreadsheet editing in the browser. Give each one its own hostname from the start: Nextcloud answers on cloud.example.com and the Document Server answers on office.example.com. Point both DNS records to your servers before you begin, because the connection settings, the JWT security and the HTTPS certificates all depend on these names staying fixed.

2

Install the Nextcloud Server

First install Nextcloud on your server and finish its web setup — create the admin account and let it connect to its database. Open cloud.example.com in the browser and log in with the admin account to confirm the file storage side is fully working before you bring the office server in. Every document you later edit with OnlyOffice will live in this Nextcloud storage.

3

Install the OnlyOffice Document Server

Now install the OnlyOffice Document Server — the separate service that renders and edits documents, spreadsheets and presentations. In this setup it is reached as office.example.com, and before HTTPS is configured it answers on port 8080 of the server. The Document Server has no file storage of its own: Nextcloud sends it a file, the user edits it in the browser, and the saved result goes back into Nextcloud.

4

Verify the Document Server with the Healthcheck

Before connecting anything, prove the Document Server is actually running. Open its healthcheck address in a browser:

Browser — Healthcheck URL
http://your-server:8080/healthcheck

The page must return exactly one word: true. That single word confirms the Document Server services are up and ready to accept connections.

✅ Tip: If the healthcheck does not return true, do not move ahead — fix the Document Server first. Every connection error later becomes much harder to trace if this basic check was skipped.
5

Install the ONLYOFFICE Connector App

Log in to Nextcloud as admin, open the Apps section and install the official ONLYOFFICE connector app. This connector is the bridge between the two servers: it adds the OnlyOffice settings page to Nextcloud and makes documents open in the OnlyOffice editor instead of downloading. Enable the app once it is installed.

6

Connect Both Servers — Address and JWT Secret

Open the ONLYOFFICE settings inside Nextcloud administration and enter the Document Editing Service address — the public HTTPS address of your Document Server:

Nextcloud — ONLYOFFICE Settings
https://office.example.com/

Then enter the JWT secret key — the same secret that is configured on the Document Server. This shared secret is how the two servers prove to each other that requests are genuine, so no one can misuse your editing service. Save the settings; Nextcloud checks the connection to the Document Server as it saves.

📌 Note: The secret on both sides must match character for character. If documents refuse to open or saving the settings throws an error, a mismatched JWT secret is the first thing to check.
7

Set Up HTTPS on Both Servers

Both hostnames — cloud.example.com and office.example.com — must open over HTTPS with valid certificates. This is not optional polish: the editing session runs inside the user's browser, so the browser itself enforces the security rules for both servers.

⚠️ Warning: If Nextcloud is on HTTPS but the Document Server is still on plain HTTP, the browser blocks the editor as mixed content and files simply will not open. Bring both servers to HTTPS before testing the integration.
8

Make Your First Real Edit

Go to Files in Nextcloud and create or open a spreadsheet or document. Instead of downloading, the file now opens inside the OnlyOffice editor right in the browser — the same working style as Google Sheets or Google Docs, but hosted entirely by you. Type something, let it save, and close the file: the edited version is back in Nextcloud storage. Your self-hosted office is live.

🏷️Topic Search Variables & Keywords

🔍 Nextcloud 🔍 OnlyOffice 🔍 OnlyOffice Document Server 🔍 Google Sheets Alternative 🔍 Self Hosted Office 🔍 Connector App 🔍 JWT Secret 🔍 HTTPS 🔍 TechnicalAnshu 🔍 ITAdmin 🔍 Nextcloud Integration 🔍 Document Editing Service 🔍 Healthcheck 🔍 Private Cloud
🎙️ Full Transcript — tap to expand

Step-by-Step Troubleshooting Guide & Solutions — Nextcloud + OnlyOffice Google Sheets Alternative. On-screen demonstration by Technical Anshu.

(transcript ends here on the source page)

❓ 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=75hxt-snbkg

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

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