ONLYOFFICE / docker-onlyoffice-nextcloud

MIT License
363 stars 156 forks source link

SSL encryption #43

Open heatray opened 3 years ago

CLAassistant commented 3 years ago

CLA assistant check
All committers have signed the CLA.

localjo commented 3 years ago

It seems that with this setup, there is something still missing with the SSL config, that negates most of the benefits of having the document server installed.

The DocumentServer is unable to save changes to Nextcloud. Basically when the DocumentServer makes a request to http://nginx-server to save changes to Nextcloud, the response is a 400 error. With the default editor settings, this failure happens silently, and is only noticed because changes that happen in the web-based ONLYOFFICE editors never get saved back to Nextcloud, but changes directly in Nextcloud end up overwriting the unsaved changes in the ONLYOFFICE document server, potentially resulting in data loss. More details in https://github.com/ONLYOFFICE/DocumentServer/issues/1233

I think the solution is something related to making sure that the SSL certificates are working for internal requests between the document server and nextcloud, and that the certificates are installed on both containers. I spent several hours trying different variations, and haven't quite figured out the solution yet. This thread might have some hints https://help.nextcloud.com/t/warning-the-document-could-not-be-saved/26550