Hi
@mercury
This is how I installed Onlyoffice on debian 11 Bullseye and Nginx,
in this installation i am using port 88 to serve seafile with OO (OnlyOffice )
and the Onlyoffice instance is on the same server as Seafile
Seafile pro 9.0.10 (no Docker)
Onlyoffice 7.2 ( Docker)
Elasticsearch 8.4.2 (Docker )
-
Delete the old instance of OO and also delete the old image in docker
Install pyjwt with the user you start seafile as, not as root
pip install pyjwt -
Launch your OO instance as follows:
sudo docker run -i -t -d -p 88:80 --restart=always --name oods -e JWT_ENABLED=true -e JWT_SECRET=XXXXXXXXXX onlyoffice/documentserver
JWT_SECRET=(generate a JWT_SECRET)
64 random hexadecimal characters (0-9 and A-F)
-
Add these lines in the seahub_settings.py file
ENABLE_ONLYOFFICE = True
VERIFY_ONLYOFFICE_CERTIFICATE = True
ONLYOFFICE_APIJS_URL = ‘https://your.domain.com/onlyofficeds/web-apps/apps/api/documents/api.js’
ONLYOFFICE_FILE_EXTENSION = (‘doc’, ‘docx’, ‘ppt’, ‘pptx’, ‘xls’, ‘xlsx’, ‘odt’, ‘fodt’, ‘odp’, ‘fodp’, ‘ods’, ‘fods’)
ONLYOFFICE_EDIT_FILE_EXTENSION = (‘docx’, ‘pptx’, ‘xlsx’)
ONLYOFFICE_JWT_SECRET = ‘XXXXXXXXXX’
4)Add these lines at the very beginning in the nginx file of seafile
map $http_x_forwarded_proto $the_scheme {
default $http_x_forwarded_proto;
"" $scheme;
}
map $http_x_forwarded_host $the_host {
default $http_x_forwarded_host;
"" $host;
}
map $http_upgrade $proxy_connection {
default upgrade;
"" close;
and after the seafile config add this
location /onlyofficeds/ {
proxy_pass http://127.0.0.1:88/;
proxy_http_version 1.1;
client_max_body_size 100M; # Limit Document size to 100MB
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;
}
Restart seafile or your server and try
and check that you can reach your Onlyoffice instance
example with my server : ONLYOFFICE Docs Community Edition