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.
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. šNote: Support my work to unlock the password. You can use this password to download any file on mariushosting forever!
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
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.
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.
STEP 15
Your Nginx Proxy Manager Dashboard will look like this.
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.
STEP 17
If you have one, add your Custom Certificate, then click Save. Follow the instructions in the image below.
STEP 18
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 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 Tuesday / November 19th, 2024 at 1:41 PM