Hi all,
I have installed the docker version using opensource-install.sh on a VM (centos7) with private IP 192.168.100.117.
The VM is behind a nginx machine with a public Ip and does also ssl. I used the nginx configuration examples from here. This worked out alright, the portal is reachable on https://onlyoffice.mydomain.com
However, editing of documents with the docker provided Onlyoffice Document Server does not work correctly. Though the online editor loads (most of the time) the Document Server still refers to the private IP 192.168.100.117 at some places. Most visible example is the logo in the upper left corner, which the browser tries to get from http://192.168.100.117/… but obviously can't as well as the 'Go to Documents' in the upper right corner. More severe, sometimes the document can not be saved or the Document Server states that the document is being edited multiple times by the same user; or loading of the document stalls.
I have set Community Server Address to https://onlyoffice.mydomain.com (with and without https) with no effect. (Btw: the line below the form field says 'Example: http://192.168.100.117')
Any help?
Regards
....volker
Docker installtion on private IP behind nginx
Re: Docker installtion on private IP behind nginx
Hello!
1. What are the settings of Document Service Location?
2. I suppose that you need minimal.conf to use on your nginx machine. I suppose there is no correct header redirection (http_x_forwarded_host). Your nginx machine should redirect url from internal address to your domain address.
1. What are the settings of Document Service Location?
2. I suppose that you need minimal.conf to use on your nginx machine. I suppose there is no correct header redirection (http_x_forwarded_host). Your nginx machine should redirect url from internal address to your domain address.
Re: Docker installtion on private IP behind nginx
1. I left Document Editing Service Address, Document Command Service Address, Document Storage Service Address, Document Conversion Service Address untouched i.e. on their defaults.
I put my https://onlyoffice.mydomain.com into Community Server Address
2. IMHO The minimal.conf does not look too different from my nginx conf in regards to the forwarding and besides the ssl stuff
Anyway,
I put in the nginx minimal.conf just to be sure and to try it without ssl.
I did a complete reinstall of the VM running onlyoffice: Centos7 with latest updates, selinux and even firewall disabled.
I ran the docker install script as described here. It ran without problems.
onlyoffice is reachable on http://onlyoffice.mydomain.com. nginx forwarding works.
The onlyoffice portal looks normal to me. The modules like Documents, Projects, Calendar work normal as far as I can tell.
Clicking one of the Sample Documents or creating a new document brings up the editor in a new browser window.
But the logo URL in the left upper corner and the Go To Documents URL in the upper right corner now refer to http://docservice/…
I put "http://onlyoffice.mydomain.com" in the Community Server Address setting field and leave the other fields as they are. I click on save and after some seconds it says "Settings have been successfully updated". (If I put in s.t. like "http://nosuch.mydomain.com" it says "Converter url: download" which IMHO confirms my forwarding.) The string below the field says "Example: http://docservice" – there is that no-sense docservice domain again.
I have rebooted several time, restarted docker, edited the Community Server Address setting etc to no effect, it insists on http://docservice
My conclusion remains: the Community Server Address setting has no effect
Screenshot: https://ibb.co/cebzj6
I put my https://onlyoffice.mydomain.com into Community Server Address
2. IMHO The minimal.conf does not look too different from my nginx conf in regards to the forwarding and besides the ssl stuff
Anyway,
I put in the nginx minimal.conf just to be sure and to try it without ssl.
I did a complete reinstall of the VM running onlyoffice: Centos7 with latest updates, selinux and even firewall disabled.
I ran the docker install script as described here. It ran without problems.
onlyoffice is reachable on http://onlyoffice.mydomain.com. nginx forwarding works.
The onlyoffice portal looks normal to me. The modules like Documents, Projects, Calendar work normal as far as I can tell.
Clicking one of the Sample Documents or creating a new document brings up the editor in a new browser window.
But the logo URL in the left upper corner and the Go To Documents URL in the upper right corner now refer to http://docservice/…
I put "http://onlyoffice.mydomain.com" in the Community Server Address setting field and leave the other fields as they are. I click on save and after some seconds it says "Settings have been successfully updated". (If I put in s.t. like "http://nosuch.mydomain.com" it says "Converter url: download" which IMHO confirms my forwarding.) The string below the field says "Example: http://docservice" – there is that no-sense docservice domain again.
I have rebooted several time, restarted docker, edited the Community Server Address setting etc to no effect, it insists on http://docservice
My conclusion remains: the Community Server Address setting has no effect
Screenshot: https://ibb.co/cebzj6
Re: Docker installtion on private IP behind nginx
Hello!
Try to set up http://onlyoffice-community-server as Community Server Address
Try to set up http://onlyoffice-community-server as Community Server Address
Re: Docker installtion on private IP behind nginx
Made some progress during the weekend and found out that an additional rule in nginx is needed.
The URLs which pointed to the private IP are now pointing to the correct external name. Though they are still http instead of https.
But now I'm running into a new problem: User can not upload files. All they get is a generic "Error"
Code: Select all
proxy_set_header Host $the_host;
But now I'm running into a new problem: User can not upload files. All they get is a generic "Error"