mirror of
https://github.com/haiwen/seafile-admin-docs.git
synced 2025-12-26 02:32:50 +00:00
opt: onlyoffice deployment
This commit is contained in:
parent
53e1d1c71c
commit
07be06e9d1
|
|
@ -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 = '<your jwt secret>'
|
||||
```
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue