Update OFFICE_PREVIEW_MAX_SIZE to 30 MB
Some checks are pending
Deploy CI - 12.0 / deploy (push) Waiting to run

This commit is contained in:
Huang Junxiang 2025-07-02 18:38:07 +08:00 committed by GitHub
parent fb5955c9c7
commit 1566fe9950
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -45,7 +45,7 @@ ONLYOFFICE_APIJS_URL = 'https://seafile.example.com:6233/web-apps/apps/api/docum
ONLYOFFICE_FILE_EXTENSION = ('doc', 'docx', 'ppt', 'pptx', 'xls', 'xlsx', 'odt', 'fodt', 'odp', 'fodp', 'ods', 'fods', 'csv', 'ppsx', 'pps')
ONLYOFFICE_EDIT_FILE_EXTENSION = ('docx', 'pptx', 'xlsx')
ONLYOFFICE_JWT_SECRET = '<your jwt secret>'
OFFICE_PREVIEW_MAX_SIZE = 2 * 1024 * 1024 # preview size, 2 MB by default
OFFICE_PREVIEW_MAX_SIZE = 30 * 1024 * 1024 # preview size, 30 MB
```
!!! tip
@ -136,7 +136,7 @@ ENABLE_ONLYOFFICE = True
ONLYOFFICE_APIJS_URL = 'http{s}://<Your OnlyOffice host url>/web-apps/apps/api/documents/api.js'
ONLYOFFICE_FILE_EXTENSION = ('doc', 'docx', 'ppt', 'pptx', 'xls', 'xlsx', 'odt', 'fodt', 'odp', 'fodp', 'ods', 'fods', 'csv', 'ppsx', 'pps')
ONLYOFFICE_JWT_SECRET = '<your jwt secret>'
OFFICE_PREVIEW_MAX_SIZE = 2 * 1024 * 1024 # preview size, 2 MB by default
OFFICE_PREVIEW_MAX_SIZE = 30 * 1024 * 1024 # preview size, 30 MB
```
### About SSL