wiki-js/home/server/OnlyOffice.md

36 lines
988 B
Markdown

---
title: OnlyOffice
description: OnlyOffice document server used by Nextcloud
published: true
date: 2025-01-05T13:01:54.958Z
tags:
editor: markdown
dateCreated: 2025-01-05T12:23:52.142Z
---
# OnlyOffice Document Server
The OnlyOffice Document server is used by Nextcloud to enable the web UI to edit office documents
## Setup
Install with docker
```
sudo docker pull onlyoffice/documentserver
```
Nextcloud is already using port 80, hence the default port for the connection has to be changed.
Changed to 5045
```
sudo docker run -i -t -d -p 5045:80 --restart=always onlyoffice/documentserver
```
The OnlyOffice instance generates a secreate key which needs to be used to connect to it with Nextcloud. It can be obtained with:
```
sudo docker exec d1ec7ca97ae2 /var/www/onlyoffice/documentserver/npm/json -f /etc/onlyoffice/documentserver/local.json 'services.CoAuthoring.secret.session.string'
```
The key for this server is:
```
O8usLs2KQSEl9f0Cmj2HraMYn5G8Eju5
```