From 5a5cd3121d8b524538c097c20af1790d4ebde5c4 Mon Sep 17 00:00:00 2001 From: lian Date: Fri, 11 Apr 2025 20:10:11 +0800 Subject: [PATCH] update onlyoffice settings. (#503) * update onlyoffice settings. * update --- manual/extension/only_office.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/manual/extension/only_office.md b/manual/extension/only_office.md index a5551978..f7bfabfb 100644 --- a/manual/extension/only_office.md +++ b/manual/extension/only_office.md @@ -42,9 +42,14 @@ Also modify `seahub_settings.py` ```py ENABLE_ONLYOFFICE = True ONLYOFFICE_APIJS_URL = 'https://seafile.example.com:6233/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_EDIT_FILE_EXTENSION = ('docx', 'pptx', 'xlsx') ONLYOFFICE_JWT_SECRET = '' + +# NOTE +# The following two configurations, do NOT need to configure them explicitly. +# The default values are as follows. +# If you have custom needs, you can also configure them, which will override the default values. +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') ``` !!! tip @@ -133,7 +138,6 @@ In general, you only need to specify the values ​​of the following fields in ```py ENABLE_ONLYOFFICE = True ONLYOFFICE_APIJS_URL = 'http{s}:///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 = '' ```