How to Install Nginx Proxy Manager on Your Synology NAS

How to Install Nginx Proxy Manager on Your Synology NAS

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. ⚠️Note: You can’t use Nginx Proxy Manager if you already have ports 80 and 443 in use on your Synology NAS. You need to uninstall the WebStation Package.

💡Note: This guide works perfectly with the latest Nginx Proxy Manager v.2.11.1 release.

  • 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.

Download Container Manager Synology Docker

  • 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.

Nginx Proxy Manager Synology NAS Set up 1

  • 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.

Nginx Proxy Manager Synology NAS Set up 2

  • 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. đź”’Note: Support my work to unlock the password. You can use this password to download any file on mariushosting forever!

👉🏻Download config.json

Nginx Proxy Manager Synology NAS Set up 3

  • STEP 6

Go to Control Panel / Task Scheduler / Create / Scheduled Task / User-defined script. Follow the instructions in the image below.

Synology User Defined Script

  • STEP 7

Once you click on User-defined script, a new window will open. Follow the instructions below:

  1. General: In the Task field type in “Install NPM“. Uncheck the “Enabled” option. Select root User.
  2. Schedule: Select Run on the following date then select “Do not repeat“.
  3. 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.)

Nginx Proxy Manager Synology NAS Set up 5 new 2023

  • STEP 8

After you click OK on STEP 7 a new warning pop up window will open. Click OK.

Nginx Proxy Manager Synology NAS Set up 6 new 2023

After you click OK, type in your DSM Password then click Submit. Follow the instructions in the image below.

Synology Task Scheduler Confirm Admin Password

  • 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.

Nginx Proxy Manager Synology NAS Set up 7

  • 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.

⚠️Warning: the default Email address is admin@example.com and the default password is changeme

Nginx Proxy Manager Synology NAS Set up 8 new 2023

  • STEP 12

Port forward in your router port 8341, 8766, 81, 80 and 443 pointing your local NAS IP.

  • STEP 13

After you click Sign in at 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.

Nginx Proxy Manager Synology NAS Set up 9

  • STEP 14

After you click Save on STEP 13, 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.

Nginx Proxy Manager Synology NAS Set up 10

  • STEP 15

Your Nginx Proxy Manager Dashboard will look like this.

Nginx Proxy Manager Synology NAS Set up 11

  • STEP 16

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.

Nginx Proxy Manager Synology NAS Set up 12

  • STEP 17

If you have one, add your Custom Certificate, then click Save. Follow the instructions in the image below.

Nginx Proxy Manager Synology NAS Set up 13

  • STEP 18

Start to add your first Proxy Host. Click on the Hosts tab. Follow the instructions in the image below.

Nginx Proxy Manager Synology NAS Set up 14

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 the 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 Back Up Docker Containers on your Synology NAS.
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 / February 24th, 2024 at 6:09 AM