From e31c0f245b80ff1864ed8c10e186e670813d8b4e Mon Sep 17 00:00:00 2001 From: Jizhou Deng Date: Wed, 24 Sep 2025 16:11:30 +0800 Subject: [PATCH] Independently deploy OnlyOffice and Collabora --- manual/extension/libreoffice_online.md | 12 ++++++++++-- manual/extension/only_office.md | 7 ++++--- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/manual/extension/libreoffice_online.md b/manual/extension/libreoffice_online.md index 9091ed0a..4ff3d5ba 100644 --- a/manual/extension/libreoffice_online.md +++ b/manual/extension/libreoffice_online.md @@ -128,5 +128,13 @@ 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:///hosting/discovery' +WOPI_ACCESS_TOKEN_EXPIRATION = 30 * 60 +OFFICE_WEB_APP_FILE_EXTENSION = ('odp', 'ods', 'odt', 'xls', 'xlsb', 'xlsm', 'xlsx','ppsx', 'ppt', 'pptm', 'pptx', 'doc', 'docm', 'docx') +ENABLE_OFFICE_WEB_APP_EDIT = True +OFFICE_WEB_APP_EDIT_FILE_EXTENSION = ('odp', 'ods', 'odt', 'xls', 'xlsb', 'xlsm', 'xlsx','ppsx', 'ppt', 'pptm', 'pptx', 'doc', 'docm', 'docx') +``` diff --git a/manual/extension/only_office.md b/manual/extension/only_office.md index cf8c2d3e..88f16758 100644 --- a/manual/extension/only_office.md +++ b/manual/extension/only_office.md @@ -133,14 +133,15 @@ 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}:///web-apps/apps/api/documents/api.js' ONLYOFFICE_JWT_SECRET = '' -OFFICE_PREVIEW_MAX_SIZE = 30 * 1024 * 1024 # preview size, 30 MB +ONLYOFFICE_FILE_EXTENSION = ('doc', 'docx', 'ppt', 'pptx', 'xls', 'xlsx', 'odt', 'fodt', 'odp', 'fodp', 'ods', 'fods', 'ppsx', 'pps', 'csv') +ONLYOFFICE_EDIT_FILE_EXTENSION = ('docx', 'pptx', 'xlsx', 'csv') +OFFICE_PREVIEW_MAX_SIZE = 30 * 1024 * 1024 ``` ### About SSL