diff --git a/manual/extension/only_office.md b/manual/extension/only_office.md index c4481df5..bd71e9c1 100644 --- a/manual/extension/only_office.md +++ b/manual/extension/only_office.md @@ -43,6 +43,7 @@ Also modify `seahub_settings.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 = '' ``` diff --git a/manual/setup/use_other_reverse_proxy.md b/manual/setup/use_other_reverse_proxy.md index 7afef44c..54268764 100644 --- a/manual/setup/use_other_reverse_proxy.md +++ b/manual/setup/use_other_reverse_proxy.md @@ -158,6 +158,21 @@ Modify `nginx.conf` and add reverse proxy for services ***seafile*** and ***sead error_log /var/log/nginx/notification.error.log; } ``` +=== "onlyoffice" + ```conf + location /onlyofficeds/ { + proxy_pass http://127.0.0.1:6233/; + proxy_http_version 1.1; + client_max_body_size 100M; + proxy_read_timeout 3600s; + proxy_connect_timeout 3600s; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection $proxy_connection; + proxy_set_header X-Forwarded-Host $the_host/onlyofficeds; + proxy_set_header X-Forwarded-Proto $the_scheme; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + } + ``` ## Modify .env