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.
Install Portainer using my step by step guide. If you already have Portainer installed on your Synology NAS, skip this STEP.
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.
Inside the nginx folder create two new folders and name one folder data and the other letsencrypt.
After you have downloaded the config.json file, upload it in your nginx folder. Follow the instructions in the image below.
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.
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.
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.
If everything goes right, you will see this message at the top right of your screen: “Stack successfully deployed“.
Go back to STEP 1 or you will deal with karma 🙂.
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 firstname.lastname@example.org 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.
After you click Sign in, you will be prompted to change your Name, Email and Password to access the Nginx Proxy Manager.
Enjoy your Nginx Proxy Manager!
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 Saturday / January 9th, 2021 at 12:47 AM