Docker-DocumentServer icon indicating copy to clipboard operation
Docker-DocumentServer copied to clipboard

HTTPS Access Document Server on Windows

Open Tumtum2814 opened this issue 4 years ago • 9 comments

What is the current behavior? Onlyoffice document server should load on HTTPS

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. I created a docker container with the document server, using the instruction on the github page. I have tried it both with leaving 443 as the SSL port and by changing the port. Both load ONLYOFFICE Document sertver under HTTPS but when trying to access HTTPS firefox shows the connection gets reset. I've tried accessing it externally(mydomain.net:1234), on a pc on the same network( 192.168.1.XXX:1234) and locally(127.0.0.1:1234) with the same behavior. What is the expected behavior? Seeing the Documentserver window show up and run on HTTPS Did this work in previous versions of DocumentServer? N/A DocumentServer Docker tag: ? funny_clarke Host Operating System: Windows 10

Tumtum2814 avatar Mar 06 '20 03:03 Tumtum2814

Could you change ssl port from 1234 to 443 and see if everything is fine?

ShockwaveNN avatar Mar 06 '20 06:03 ShockwaveNN

i have tried both a custom port and the default ssl port (443) with the same result unfortunately :(

Tumtum2814 avatar Mar 06 '20 17:03 Tumtum2814

@Tumtum2814 could you provide docker run command for documentserver you using?

ShockwaveNN avatar Mar 10 '20 09:03 ShockwaveNN

@ShockwaveNN sure! docker run -i -t -d -p 2266:80 -p 443:443 --restart=always onlyoffice/documentserver

Tumtum2814 avatar Mar 10 '20 15:03 Tumtum2814

@Tumtum2814 you should mount certificates inside container at /var/www/onlyoffice/Data as described in instruction here Without certs https connection will not work

ShockwaveNN avatar Mar 10 '20 15:03 ShockwaveNN

@ShockwaveNN does the -v command work on windows 10? Obviously I don't have a /var directory. Do i basically need to grab those certs and install them on windows web services or a windows apache or nginx install?

Tumtum2814 avatar Mar 10 '20 15:03 Tumtum2814

@Tumtum2814 sorry, cant help you with windows stuff, I'm not sure if Docker of DocumentServer will work on Windows 10, but mount paths inside container should be same, outside path should windows specific Maybe @DenisDeeSign know some info

ShockwaveNN avatar Mar 10 '20 15:03 ShockwaveNN

ok, thanks for trying! I'll wait and see if @DenisDeeSign can help out!

Tumtum2814 avatar Mar 16 '20 18:03 Tumtum2814

Hello @Tumtum2814 , sorry for the late reply. You need to copy your tls.crt and tls.key in mounted volumes, for example: Start container with volumes

docker run -i -t -d -p 443:443 --restart=always `
 -v C:\app\onlyoffice\DocumentServer\data:/var/www/onlyoffice/Data onlyoffice/documentserver

Create folder with name "certs" in "C:\app\onlyoffice\DocumentServer\data", copy tls.crt and tls.key here (full path C:\app\onlyoffice\DocumentServer\data\certs). Restart container

docker restart <container_id>

Open https://<your_ip_or_domain_name>

igwyd avatar Dec 22 '20 10:12 igwyd