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

  • STEP 1

Please Support My work by Making a Donation.

  • STEP 2

Install Portainer using my step by step guide. If you already have Portainer installed on your Synology NAS, skip this STEP.

  • STEP 3

Go to File Station and open the docker folder. Inside the docker folder, create one new folder and name it nginx. Follow the instructions in the image below.

1 Install Nginx Proxy Manager Synology NAS set up docker portainer

Inside the nginx folder create two new folders and name one folder data and the other letsencrypt.

2a-Install-Nginx-Proxy-Manager-Synology-NAS-set-up-docker-portainer

  • STEP 4

Download this file: config.json

After you have downloaded the config.json file, upload it in your nginx folder. Follow the instructions in the image below.

2b-Install-Nginx-Proxy-Manager-Synology-NAS-set-up-docker-portainer

  • STEP 5

Log into Portainer using your username and password. On the Portainer left sidebar click on Stacks. After you click on Stacks, a new screen will open. Click + Add Stack. In the Name field type in nginx. Follow the instructions in the image below.

Note: In the Portainer Stacks Web editor Copy Paste the code below.

version: '2.9'
services:
  app:
    image: 'jc21/nginx-proxy-manager:latest'
    ports:
      - '8080:80'
      - '8181:81'
      - '4443:443'
    volumes:
      - /volume1/docker/nginx/config.json:/app/config/production.json
      - /volume1/docker/nginx/data:/data
      - /volume1/docker/nginx/letsencrypt:/etc/letsencrypt
    environment:
      - PUID=1026
      - PGID=100
      - TZ=Romania/Bucharest

After you paste the code in the Web editor, change the value for TZ (Select your current Time Zone from this list).
After you paste the code in the Web editor, change the value numbers for PUID and PGID with your own values. (Follow my step by step guide on how to do this.)
Note: If you have your docker folder in a different volume, then change /volume1/docker/nginx according to your settings. For example: /volume2/docker/nginx or /volume3/docker/nginx etc.

2c-Install-Nginx-Proxy-Manager-Synology-NAS-set-up-docker-portainer

  • STEP 6

Scroll down on the page until you see a button named Deploy the stack. Click on it. Follow the instructions in the image below. The installation process can take up to a few minutes. It will depend on your Internet speed connection.

2d-Install-Nginx-Proxy-Manager-Synology-NAS-set-up-docker-portainer

  • STEP 7

If everything goes right, you will see this message at the top right of your screen: “Stack successfully deployed“.

4 Install Nginx Proxy Manager Synology NAS set up docker portainer

  • STEP 8

Go back to STEP 1. Remember that this is a free guide. Please support the content creator you love. 🙂

  • STEP 9

Now open your browser and type in http://Synology-ip-address:8181/ 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.

5 Install Nginx Proxy Manager Synology NAS set up docker portainer

  • STEP 10

After you click Sign in, you will be prompted to change your Name, Email and Password to access the Nginx Proxy Manager.

6 Install Nginx Proxy Manager Synology NAS set up docker portainer

  • STEP 11

Enjoy your Nginx Proxy Manager!

7 Install Nginx Proxy Manager Synology NAS set up docker portainer

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: If the container runs on errors at STEP 5 then edit Stacks and remove entry environment variables lines from line 13 to line 16. This should not happen.
Note: It’s Mandatory to use the Port Forwarding option on your router to forward ports 80 and 443.

This post was updated on Monday / September 21st, 2020 at 3:30 AM