Docker-DocumentServer
Docker-DocumentServer copied to clipboard
HTTPS Access Document Server on Windows
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
Could you change ssl port from 1234 to 443 and see if everything is fine?
i have tried both a custom port and the default ssl port (443) with the same result unfortunately :(
@Tumtum2814 could you provide docker run
command for documentserver you using?
@ShockwaveNN sure! docker run -i -t -d -p 2266:80 -p 443:443 --restart=always onlyoffice/documentserver
@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 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 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
ok, thanks for trying! I'll wait and see if @DenisDeeSign can help out!
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>