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 Letsencrypt 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 Docker via Synology “Package Center”.

Install Docker Synology DSM 7

  • 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 name one “data” and the other “letsencrypt“. Follow the instructions in the image below.
Note: Be careful enter only lowercase, not uppercase letters.

Nginx Proxy Manager Synology NAS Set up 2

  • STEP 5

Inside the npm folder that you created at STEP 3 upload the config.json file below. Download it from mariushosting then upload it into your npm folder. Follow the instructions in the image below.

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.

Nginx Proxy Manager Synology NAS Set up 4

  • 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 “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 PUID=1026 \
-e PGID=100 \
-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 numbers for PUID and PGID with your own values. (Follow my step by step guide on how to do this.)
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

  • 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

  • STEP 9

After you click OK on STEP 8, select your “Install NPM” Task then click the “Run” tab. You will be asked to run Install NPM – click Yes. 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

Now open your browser and type in http://Synology-ip-address:81/ Follow the instructions in the image below. In the Email address field type in admin@example.com and in the Password field type in changeme. This email and this password are the default credentials for your first access to the Nginx Proxy Manager. Click Sign in.

Nginx Proxy Manager Synology NAS Set up 8

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

Nginx Proxy Manager Synology NAS Set up 9

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

Nginx Proxy Manager Synology NAS Set up 10

  • STEP 14

Your Nginx Proxy Manager Dashboard will look like this.

Nginx Proxy Manager Synology NAS Set up 11

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

Nginx Proxy Manager Synology NAS Set up 12

  • STEP 16

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 17

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

Nginx Proxy Manager Synology NAS Set up 14

Note: If you want to run this container over an HTTPS check How to Run Docker Containers Over HTTPS.

Note: Find out how to update 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 to work.

This post was updated on Tuesday / August 31st, 2021 at 11:14 AM