Try the fastest and simplest way to install ONLYOFFICE

Restarting DocumentServer & CommunityServer

Re: Restarting DocumentServer & CommunityServer

Postby Merc » Tue Aug 04, 2015 11:03 pm

I just installed a new server (CS-DS pair) using the current Docker images under Ubuntu 14.04.2 following the method in this thread. The http server is working fine but when I create the certs and keys (/opt/onlyoffice/Data/certs/onlyoffice.crt, etc.) and restart the server/containers I do NOT see a new/modified Nginx site file for https and a page for https does not load.

I am expecting a site file for SSL that resembles:

https://github.com/ONLYOFFICE/Docker-Co ... office-ssl

Is anything else in the configuration required in order to invoke the SSL configuration in Nginx? The way I read it the process is scripted and the switch is automatic. The containers are open to ports 80 and 443.

Thank you.
Merc
 
Posts: 34
Joined: Tue Jun 09, 2015 2:29 am

Re: Restarting DocumentServer & CommunityServer

Postby CinnabarJack » Fri Aug 14, 2015 7:05 am

Did you check/change the environmental parameters for the location of SSL files? If you look at

http://helpcenter.onlyoffice.com/server ... https.aspx

the default path to the files is: /var/www/onlyoffice/Data/certs/

not /opt/onlyoffice/Data/certs/ as shown in the installation notes.

Here are four default SSL files with paths:

SSL_CERTIFICATE_PATH: The path to the SSL certificate to use. Defaults to /var/www/onlyoffice/Data/certs/onlyoffice.crt.
SSL_KEY_PATH: The path to the SSL certificate private key. Defaults to /var/www/onlyoffice/Data/certs/onlyoffice.key.
SSL_DHPARAM_PATH: The path to the Diffie-Hellman parameter. Defaults to /var/www/onlyoffice/Data/certs/dhparam.pem.
SSL_VERIFY_CLIENT: Enable verification of client certificates using the CA_CERTIFICATES_PATH file. Defaults to false.

I would say you might have to modify your docker run command with the correct environment variables for the correct path or maybe you can just move the files to other location, at least for the purpose of a test.

Either way, you have one more step to go. Does that make sense?
CinnabarJack
 
Posts: 15
Joined: Thu May 21, 2015 10:27 pm

Re: Restarting DocumentServer & CommunityServer

Postby Merc » Tue Aug 18, 2015 11:04 pm

Thanks for the tip. I modified my run command with the -e flag to specify the path to the certs, inserting:

-e SSL_CERTIFICATE_PATH='/opt/onlyoffice/Data/certs/onlyoffice.crt' -e SSL_KEY_PATH='/opt/onlyoffice/Data/certs/onlyoffice.key' -e SSL_DHPARAM_PATH='/opt/onlyoffice/Data/certs/dhparam.pem'

and now it seems to work fine. Many thanks.
Merc
 
Posts: 34
Joined: Tue Jun 09, 2015 2:29 am

Previous

Return to Miscellaneous

Who is online

Users browsing this forum: No registered users and 2 guests

cron