docs: README OnlyOffice-Abschnitt aktualisiert
- Kein ONLYOFFICE_JWT_SECRET mehr, nutzt JWT_SECRET_KEY automatisch - Nur noch ONLYOFFICE_URL in .env setzen - Eigene Subdomain mit HTTPS als Pflicht beschrieben - Schritte vereinfacht (4 statt 5) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -121,32 +121,22 @@ Let's Encrypt Zertifikat erstellen:
|
|||||||
certbot --nginx -d cloud.example.com
|
certbot --nginx -d cloud.example.com
|
||||||
```
|
```
|
||||||
|
|
||||||
### OnlyOffice Document Server (optional)
|
### OnlyOffice Document Server
|
||||||
|
|
||||||
Fuer die Bearbeitung von Word, Excel und PowerPoint Dateien direkt im Browser.
|
Fuer die Bearbeitung von Word, Excel und PowerPoint Dateien direkt im Browser. OnlyOffice benoetigt eine eigene Subdomain mit HTTPS.
|
||||||
|
|
||||||
**1. docker-compose.yml - OnlyOffice-Service aktivieren:**
|
**1. .env - OnlyOffice URL setzen:**
|
||||||
|
|
||||||
```yaml
|
|
||||||
# In docker-compose.yml auskommentieren:
|
|
||||||
onlyoffice:
|
|
||||||
image: onlyoffice/documentserver:latest
|
|
||||||
environment:
|
|
||||||
- JWT_ENABLED=true
|
|
||||||
- JWT_SECRET=${ONLYOFFICE_JWT_SECRET}
|
|
||||||
volumes:
|
|
||||||
- ./data/onlyoffice/logs:/var/log/onlyoffice
|
|
||||||
- ./data/onlyoffice/data:/var/www/onlyoffice/Data
|
|
||||||
restart: unless-stopped
|
|
||||||
```
|
|
||||||
|
|
||||||
**2. .env - OnlyOffice konfigurieren:**
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
ONLYOFFICE_URL=https://office.example.com
|
ONLYOFFICE_URL=https://office.example.com
|
||||||
ONLYOFFICE_JWT_SECRET=ein-sicheres-secret-hier
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Das JWT-Secret wird automatisch vom `JWT_SECRET_KEY` verwendet - kein extra Secret noetig.
|
||||||
|
|
||||||
|
**2. docker-compose.yml - OnlyOffice-Service aktivieren:**
|
||||||
|
|
||||||
|
Der OnlyOffice-Service ist in der `docker-compose.yml` bereits vorbereitet. Er nutzt den gleichen `JWT_SECRET_KEY` aus der `.env`.
|
||||||
|
|
||||||
**3. Nginx - Eigene Subdomain fuer OnlyOffice:**
|
**3. Nginx - Eigene Subdomain fuer OnlyOffice:**
|
||||||
|
|
||||||
```nginx
|
```nginx
|
||||||
@@ -167,12 +157,14 @@ server {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
**4. Starten:**
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
certbot --nginx -d office.example.com
|
certbot --nginx -d office.example.com
|
||||||
docker-compose up -d
|
docker-compose up --build -d
|
||||||
```
|
```
|
||||||
|
|
||||||
**Ohne OnlyOffice** werden Office-Dateien in einer einfachen Vorschau angezeigt (nur Lesen). **Mit OnlyOffice** erhaelt man einen vollwertigen Editor (wie Google Docs).
|
**Ohne OnlyOffice** (`ONLYOFFICE_URL` leer) werden Office-Dateien in einer einfachen Vorschau angezeigt. **Mit OnlyOffice** erhaelt man einen vollwertigen Editor (wie Google Docs).
|
||||||
|
|
||||||
## Verwendung
|
## Verwendung
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user