I have a problem with getting HTTPS to work on my Synology NAS, I hope you can help me out. I want to mention up front, that I also posted this question on Stackoverflow but it hasn’t gotten any traction and has since been deleted.
I have installed Gitlab (gitlabce:latest) on Docker (17.05.0-0379) on my Synology NAS (918+ with DSM 6.2.23739) through the GUI. Gitlab per se worked right away, but I would like to force https connection, when someone from outside my network connects to it. Here’s What I did so far:
Create a dynDNS on no-ip[dot]com (domainname[dot]ddns[dot]net)
Create a let’s encrypt Certificate under Control Panel >> Security >> Certificate.
Followed the instructions here to enable HTTPS: https://steemit.com/security/@the-tech-guy/let-s-encrypt-ssl-certificate-for-gitlab-with-docker-on-synology. I used the command
openssl dhparam -dsaparam -out dhparam.pem 4096after the first try took more than 6 hours without a result. The step where I was supposed to stop the package in package manager didn’t make any sense to me, though, as I only have the container in docker and not the additional (Version 8) package that can be installed there.
This did not work, so I searched around a bit and manually added the Environment variables
SSL_KEY_PATH to point the container at the location of the certificates.
Access through domainname[dot]ddns[dot]net:80 still works normally, doesn’t force https and port 443 can’t be reached. The error message in Opera says “This site can’t be reached. The connection was reset”, this seems to be a different message from the normal “server IP address can’t be found”,
I also had a look at the documentation of the container (https://hub.docker.com/r/sameersbn/gitlab/#enabling-https-support), but when I followed those instructions, nothing changed.
Installing a self signed certificate didn’t work either.
Potential errors I see:
- The whole certificate generation step might have been done completely wrong.
- I executed the shell commands when connected to the NAS itself and not Gitlab within the Container. Is that correct?
Can anyone point me in the right direction, please? I am new to this and am sure to have made some errors while setting this up. Help is greatly appreciated.