Nginx Proxy Manager enables you to easily forward to your websites running at home or otherwise, including free SSL, without having to know too much about Nginx or Let’s Encrypt certificate. You can easily manage Nginx proxy hosts and SSL Certificates with a simple, powerful interface. It’s also completely free and great for both casual users and computer experts. In this step by step guide I will show you how to install Nginx Proxy Manager on your Synology NAS using Docker.
STEP 1
Please Support My work by Making a Donation.
STEP 2
Install Container Manager via Synology “Package Center”. If you run an older DSM version (under 7.2), search for Docker instead of Container Manager.
STEP 3
Go to File Station and open the docker folder. Inside the docker folder, create one new folder and name it npm. Follow the instructions in the image below.
Note: Be careful to enter only lowercase, not uppercase letters.
STEP 4
Now create two new folders inside the npm folder that you created at STEP 3 and name one “data” and the other “letsencrypt“. Follow the instructions in the image below.
Note: Be careful to enter only lowercase, not uppercase letters.
STEP 5
Download (click on the blue link below) then upload the config.json file below in the npm folder that you have previously created at STEP 3. Follow the instructions in the image below.
STEP 6
Go to Control Panel / Task Scheduler / Create / Scheduled Task / User-defined script. Follow the instructions in the image below.
STEP 7
Once you click on User-defined script, a new window will open. Follow the instructions below:
- General: In the Task field type in “Install NPM“. Uncheck the “Enabled” option. Select root User.
- Schedule: Select Run on the following date then select “Do not repeat“.
- Task Settings: Check “Send run details by email“, add your email then copy paste the code below in the Run command area. After that, click OK.
docker run -d --name=nginx_proxy_manager \
-p 8341:80 \
-p 81:81 \
-p 8766:443 \
-e TZ=Europe/Bucharest \
-v /volume1/docker/npm/config.json:/app/config/production.json \
-v /volume1/docker/npm/data:/data \
-v /volume1/docker/npm/letsencrypt:/etc/letsencrypt \
--restart always \
jc21/nginx-proxy-manager
Note: Before you paste the code above in the Run command area below, change the value for TZ. (Select your current Time Zone from this list.)
STEP 8
After you click OK on STEP 7 a new warning pop up window will open. Click OK.
After you click OK, type in your DSM Password then click Submit. Follow the instructions in the image below.
STEP 9
After you click Submit on STEP 8, select your “Install NPM” Task then click the “Run” tab. You will be asked to run Install NPM – click OK. Follow the instructions in the image below.
STEP 10
Go back to STEP 1 or you will deal with karma 🙂
STEP 11
The installation process can take up to a few seconds/minutes. It will depend on your Internet speed connection. Now open your browser and type in http://Synology-ip-address:81 Type in the default username and password, then click Log in.
STEP 12
After you click Sign in on STEP 11, you will be prompted to change your Full Name, Nickname and Email. Change them according to your preferences, then click Save. Follow the instructions in the image below.
STEP 13
After you click Save on STEP 12, you will be prompted to change your Password. Add your current “changeme” password, then type in your password of choice. Click Save. Follow the instructions in the image below.
STEP 14
Your Nginx Proxy Manager Dashboard will look like this.
STEP 15
Go to the SSL Certificates tab. You will have the option to issue your own Let’s Encrypt certificate or import your existing one. Click Custom. Follow the instructions in the image below.
STEP 16
If you have one, add your Custom Certificate, then click Save. Follow the instructions in the image below.
STEP 17
Start to add your first Proxy Host. Click on the Hosts tab. Follow the instructions in the image below.
Fix: If you are using Synology and let’s encrypt certificate via Control Panel / Security / Certificate Nginx Proxy Manager will not work. If you are using Synology Web Station package Nginx Proxy Manager will not work.
Note: If you want to run the Nginx Proxy Manager container over HTTPS, check out my guide on How to Run Docker Containers Over HTTPS.
Note: Find out how to update the Nginx Proxy Manager container with the latest image.
Note: Can I run Docker on my Synology NAS? See the supported models.
Note: How to Free Disk Space on Your NAS if You Run Docker.
Note: It’s Mandatory to use the Port Forwarding option on your router to make Nginx Proxy Manager work.
Note: How to Schedule Start & Stop For Docker Containers.
Note: How to Activate Email Notifications.
Note: How to Add Access Control Profile on Your NAS.
Note: How to Change Docker Containers Restart Policy.
Note: How to Use Docker Containers With VPN.
Note: Convert Docker Run Into Docker Compose.
Note: How to Clean Docker.
Note: How to Clean Docker Automatically.
Note: Best Practices When Using Docker and DDNS.
Note: Some Docker Containers Need WebSocket.
Note: Find out the Best NAS Models For Docker.
Note: Activate Gmail SMTP For Docker Containers.
This post was updated on Saturday / May 13th, 2023 at 12:34 AM