This is more to remind myself of how to do it — it may not be 100% complete, or exactly fit your needs!
I’m going to assume that you have the Docker package installed, and a Docker container running on the Synology NAS, serving http content on a port that is not
443. (Setting up this container is beyond the scope of this doc.)
First, have the FQDN ready. We’ll use
books.example.com. Make sure that your DNS provider is pointing this domain at your NAS server. If you need to know the NAS’s IP address, check DSM > Control Panel > External Access > DDNS and check the External Address under the preferred Service Provider. (I use
NOTE: There doesn’t seem to be a way to set multiple domain names to resolve to one IP address with DynDNS.org, but I wonder if there is a way to do it with the customized query URL method? Worth looking into.
In the Docker package, click on Container in the left column, and in the list of containers, click on the container that you want to proxy. click on Details and in the lower left, under Port Settings, make note of the Local Port for the web service. In this case, the port is
In Control Panel, go to Login Portal > Advanced, and click the button for Reverse Proxy. This will show you a list of any proxies you have set up. Click Create and enter the following information:
- Reverse Proxy Name: a descriptive name. I’m proxying the Kavita ebook server, so we’ll call this “Kavita”
- Protocol: HTTPS (we will set up the certificate in a moment)
443(the common HTTPS port)
- ☑️ Enable HSTS (this redirects and HTTP requests to HTTPS)
- Protocol: HTTP (this is local on a (supposedly) trusted machine, so we don’t need security, pls certificates on a local machine are a pain in the ass)
5471(the Local Port from above)