Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seafile 10 & 11 docker + OnlyOffice docker - error save files if the server is deployed in a local environment, seafile 9 - good #2717

Open
PahaCore opened this issue Nov 11, 2023 · 0 comments

Comments

@PahaCore
Copy link

PahaCore commented Nov 11, 2023

seafile 10 - error
seafile 11 - error
seafile 9 - good

...
ngnix
...
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;
}
...
location /onlyofficeds/ {
proxy_pass http://seafile-oods/;
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;
}
...

ENABLE_ONLYOFFICE = True
VERIFY_ONLYOFFICE_CERTIFICATE = False
ONLYOFFICE_APIJS_URL = 'https://file.doc.loc/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 = 'secret'
ONLYOFFICE_FORCE_SAVE = True
...
...
seafile-oods:
image: onlyoffice/documentserver:7.5
container_name: seafile-oods
restart: unless-stopped
networks:
- seafile-net
environment:
- JWT_SECRET=secret
- USE_UNAUTHORIZED_STORAGE=true
...

  • USE_UNAUTHORIZED_STORAGE=true - allows you to open - but not save
@PahaCore PahaCore changed the title Seafile 10 & 11 docker + OnlyOffice docker - error save files if the server is deployed in a local environment Seafile 10 & 11 docker + OnlyOffice docker - error save files if the server is deployed in a local environment, seafile 9 - good Nov 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants