Merge pull request #595 from haiwen/deploy_onlyoffice_collabora_independently
Some checks are pending
Deploy CI - 13.0 / deploy (push) Waiting to run

Independently deploy OnlyOffice and Collabora
This commit is contained in:
Daniel Pan 2025-09-24 16:31:10 +08:00 committed by GitHub
commit 03429f586b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 5 deletions

View File

@ -128,5 +128,11 @@ docker compose up -d
```
### CollaboraOnline server on a separate host
If your CollaboraOnline server on a separate host, you just need to modify the `seahub_settings.py` similar to [deploy on the same host](#config-seafile). The only different is you have to change the field `OFFICE_WEB_APP_BASE_URL` to your CollaboraOnline host (e.g., `https://collabora-online.seafile.com/hosting/discovery`).
For independent deployment of CollaboraOnline on a single server, please refer to the [official documentation](https://sdk.collaboraonline.com/docs/installation/CODE_Docker_image.html#code-docker-image). After a successful deployment, you only need to specify the values of the following fields in `seahub_settings.py` and then restart the service.
```py
OFFICE_SERVER_TYPE = 'CollaboraOffice'
ENABLE_OFFICE_WEB_APP = True
OFFICE_WEB_APP_BASE_URL = 'https://<Your CollaboraOnline host url>/hosting/discovery'
WOPI_ACCESS_TOKEN_EXPIRATION = 30 * 60
ENABLE_OFFICE_WEB_APP_EDIT = True
```

View File

@ -133,14 +133,13 @@ Starting from OnlyOffice Docker-DocumentServer version 7.2, JWT is enabled by de
So, for security reason, please **Configure OnlyOffice to use JWT Secret**.
### OnlyOffice on a separate host and URL
In general, you only need to specify the values of the following fields in `seahub_settings.py` and then restart the service.
For independent deployment of OnlyOffice on a single server, please refer to the [official documentation](https://api.onlyoffice.com/docs/docs-api/get-started/installation/self-hosted/). After a successful deployment, you only need to specify the values of the following fields in `seahub_settings.py` and then restart the service.
```py
ENABLE_ONLYOFFICE = True
ONLYOFFICE_APIJS_URL = 'http{s}://<Your OnlyOffice host url>/web-apps/apps/api/documents/api.js'
ONLYOFFICE_JWT_SECRET = '<your jwt secret>'
OFFICE_PREVIEW_MAX_SIZE = 30 * 1024 * 1024 # preview size, 30 MB
OFFICE_PREVIEW_MAX_SIZE = 30 * 1024 * 1024
```
### About SSL