mirror of
https://github.com/haiwen/seafile-admin-docs.git
synced 2025-12-25 18:22:48 +00:00
Independently deploy OnlyOffice and Collabora
This commit is contained in:
parent
76bd41e35e
commit
e31c0f245b
|
|
@ -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://<Your CollaboraOnline host url>/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')
|
||||
```
|
||||
|
|
|
|||
|
|
@ -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}://<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
|
||||
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
|
||||
|
|
|
|||
Loading…
Reference in New Issue