You all loved my series of articles on how to use an HTTPS/SSL certificate to secure your Docker containers and make them accessible from anywhere, like my article Synology: How to Allow BitWarden to Work Over an HTTPS Connection. And, to continue the series, today I have a new and exciting guide that many of you have been requesting for some time: how to remove the port number at the end of your DDNS synology.me address, for example, :5152. Today I will teach you how to add a custom Subdomain to your synology.me DDNS and use a different one for each of your containers, without worrying about remembering the final port number. Definitely a guide that you will find extremely useful and will surely help make your experience with Synology NAS devices even more exciting.
Remember this is a premium article and your support is appreciated.
- STEP 1
- STEP 2
Follow my step by step guide on how to activate your synology.me DDNS on DSM 6.2.4
Note: If you already own a synology.me DDNS, skip this STEP.
- STEP 3
- STEP 4
- STEP 5
- STEP 6
- STEP 7
Note: If you fail to create a new certificate try to create a new certificate using your http://yournasip:5000 instead using the https connection.
- STEP 8
- STEP 9
- STEP 10
On General area, set the Reverse Proxy Name description: type in Bitwarden or the Description you have already chosen at STEP 5. After that, add the following instructions:
Source:
Protocol: HTTPS
Hostname: bitwarden.yourname.synology.me
Port: 443
Destination:
Protocol: HTTP
Hostname: localhost
Port: 5151 (Read the Note)
Note: Under Destination, the localhost port will vary depending on the port you used to create your container. This port can vary from container to container. For example, my Bitwarden container is running in localhost on port 5151.
- STEP 11
- STEP 12
- STEP 13
- STEP 14
Note: In the browser address bar don’t forget to add https:// before the link.
- STEP 15
- STEP 16
Enjoy!
Note: This guide can be applied to all Synology NAS Docker Containers for which you want to use HTTPS/SSL.
Note: Some Docker containers like Home Assistant (Not All) need WebSocket activation in order to work over an HTTPS connection. To do this, go to Control Panel / Login Portal / select your Reverse Proxy then click the Custom Header tab. Click Create and then, from the drop-down menu, click WebSocket. After you click on WebSocket, two Header Names and two Values will be automatically added. Click Save. Follow the instructions in the image below.
Note: If you don’t want to create new certificate for all your containers you should use my guide on How to Add Wildcard Certificate.