Don’t forget to forward ports 80 and 443 to the IP of the machine your Nginx Proxy Manager is on. Do this in your router or gateway. Find the IP by opening a terminal and type “ifconfig”. If that doesn’t work install net tools by typing “sudo apt install net-tools” then run the ifconfig command again. You can also use the ip addr command.
@TheMentalFlakes4 жыл бұрын
When it comes time for the automatic Let's Encrypt cert renewal, will I have to turn the Cloudflare proxy back off for it to renew? Or it will renew on its own?
@condor134 жыл бұрын
Man hot did i forget that! Thanks!!! was struggling for hours to get https working!
@vicwilliams97313 жыл бұрын
When i forward the ports. and click on my domain name. It just takes me to the login page of the nginx proxy manager
@DangerRangerThings2 жыл бұрын
Hi there. I'm wanting to follow your written guide, but it looks like your site is down?
@rc_brotherz2 жыл бұрын
LOL I was wondering why my subdomain kept taking me to my router login!! Hah! May want to add this as one of those info cards on the video.
@Elmojomo3 жыл бұрын
You just earned a sub for the ONE detail you included that no one else has mentioned: turning off the Cloudflare proxy temporarily until after adding the SSL!! I've been struggling with this for literally weeks. That one little thing suddenly made my setup work...thank you so much!
@selfhosted3 жыл бұрын
I’ve had quite a few people tell me this. Good to hear my video helped you and thanks for watching!
@ijaricool Жыл бұрын
hey, do you know why right now you dont have to do that actually? when proxy is enabled i can still make a certificate in nginx ?@@selfhosted
@SoldatOne2 ай бұрын
Exactly, the only detail that makes the difference
@boomuhjuice629911 ай бұрын
A million thumbs up, this is the 5th tutorial I've watched on setting up NGINX, the first one I got to work And I only needed to watch a single time,
@Luke-cb7hi4 жыл бұрын
3 month ago I tried to setup cloudflare but without success, now I get why. Thanks a lot I will try again with your tutorial in mind !
@selfhosted4 жыл бұрын
Sandro Man Let me know how it goes!
@Luke-cb7hi4 жыл бұрын
@@selfhosted unfortunately nginx didn't work because I use a raspberry as my selfhost machine, but cloudflare did ! Thanks again
@selfhosted4 жыл бұрын
Sandro Man kzbin.info/www/bejne/aKDMZXyHe5yJpKc
@Luke-cb7hi4 жыл бұрын
@@selfhosted uhh, thanks
@lorddias Жыл бұрын
I know its been a couple of years now but thanks a ton for this video! I was so lost trying to complete setup and I was constantly making things more complicated than they needed to be. I gave it an honest try but your video did the job, thank you.
@bernieyee4 жыл бұрын
Thank you much! I followed your video today and got my Plex server online now! Most of my time has been spend on "Don’t forget to forward ports 80 and 443 to the IP of the machine your Nginx Proxy Manager is on. " I wish that I read the description before watching the video! LOL! Anyway, great video and please keep going!!!
@geraldmaale3 жыл бұрын
Wasted almost 12hours in getting around this hack. You are a life saver. The port mappings were tricky for me. I went around almost all options except what you demonstrated. Cheers! 👌👌🤞🤞
@selfhosted3 жыл бұрын
Glad it helped! Thanks for sharing your feedback!
@andreloureiro81272 жыл бұрын
Not going to lie, im trying to learn some stuff before I start tinkering on my machine and this video is by far the most comprehensive of all of the ones i saw
@LonSeidman4 жыл бұрын
This was a super helpful and simple guide. I did an experiment where I booted up the NPM docker on an Unbuntu VM running on my Synology NAS' virtual machine manager and then passed traffic to an OwnCloud docker running on the Synology as well. The VM got its own IP (similar to how it would work with Proxmox) and I did not experience any collisions with the Synology port 80 and 443 issue. The only thing I ran into with that configuration was that the Owncloud docker image did not have SSL configured so I used cloudflare's SSL instead. Seems to work and the cert is valid.
@selfhosted4 жыл бұрын
Lon.TV sounds right! As long as you’re not hosting NPM on synology root. The VM makes sense! Happy to have your input!
@huntermcclovio45174 жыл бұрын
wow! you got input from Lon.TV!! how cool is that! I am subscribed to both of you guys' channel good stuff!!
@KevinMarchese3 жыл бұрын
9:32 omg 😳 these are the little things people fail to tell the tale of on why. Thank you extremely helpful.
@joftenly3 жыл бұрын
Hey thanks! I broke a lot doing this tutorial, I learned how to fix more stuff and I got the original thing done using this tutorial lol! Thanks for the quality vid!!
@GluttonyGamingChannel2 жыл бұрын
you may not have a ton of subscribers yet but with the way you present you will. thanks for the great video
@PeterBatah3 жыл бұрын
Thank you for sharing your time and expertise with us. Your delivery was clear and precise. No apology necessary. Much appreciated.
@SrFrancia03 жыл бұрын
Great video, thanks. I would suggest you zoom webpages as much as you can so future "tutorials" like this are watchable on smaller screens or smaller windows so we can follow steps while watching
@HowToITLLC3 жыл бұрын
I loved this! Thank you! I am getting a 502 error but that means it is my set up officially this video helped me troubleshoot a lot, thank you.
@NickKarpen10 ай бұрын
Great Explanation! New to home lab and just stumbled across your channel. Bummed to see that you are not creating many new videos.
@faba0023 жыл бұрын
Finally someone who explains it correctly for a starter. Great video !
@euf0ria4 жыл бұрын
Great walktrough! Have you considered making more of these videos and have a deeper look into the rest of the settings in both cloudflare and NPM?
@henslyyung62212 жыл бұрын
Great Video. While recording use a lower resolution setting for your screen or you will need to edit and focus on smaller windows so we can read properly. Thanks keep it up. Subscribed.
@ZacharyGuerrero4 жыл бұрын
Thanks this is awesome! I wish I knew about Nginx Proxy Manager before. using that will make managing all my proxy servers so much easier vs manually editing each one.
@eduardoalmontemieses48424 жыл бұрын
Thanks for answering my last question and thanks for this whole video on the subject. Love the channel and content. Going with a RPI to try this out 🤙🏽
@selfhosted4 жыл бұрын
Eduardo Almonte Mieses my good buddy DBTech has a great video for installing NPM on rpi. kzbin.info/www/bejne/aKDMZXyHe5yJpKc
@eduardoalmontemieses48424 жыл бұрын
@@selfhosted Up and running! Huge thank you!
@selfhosted4 жыл бұрын
@@eduardoalmontemieses4842 Awesome! good to hear!
@eduardoalmontemieses48423 жыл бұрын
@@selfhosted Wondering if I now use a domain such as nas.mydomain.com via Nginx to load up DSM, can now use that domain to use services such as Hyper Backup that require ports such as 6281 from a remote NAS, or am I stuck using home IP + opening ports.
@t_Radikl4 жыл бұрын
Really loving your content! Very well explained. Keep up the great content and I’ll keep smashing that like button!
@RuneW0lf4 жыл бұрын
Well. thanks to you i now have subdomains setup and working beautifully, thankyou for the amazing tutorial!
@selfhosted4 жыл бұрын
Rune W0lf Awesome! Glad to hear!
@jig10564 жыл бұрын
Nice video, thanks. So you mentioned that I need for turn off proxy in cloud flare before setting up the cert in nginx proxy manager. I’ve not done this and it seems to work fine. every once in a while I’ll get an error in nginx advising of an internal error when adding the cert but i try it again and it works fine. I didn’t know that they proxy should be off, what is the impact of of having proxy on when creating cloudflare entry?
@patrickmoon4090 Жыл бұрын
Thank you for your kind explaination! I got it finally!
@FunkShoi3 жыл бұрын
thanks for making a video for the rest of us!
@selfhosted3 жыл бұрын
No worries!
@larrybahr4894 жыл бұрын
This was a great and quick video. Exactly what I wanted to know!
@DrummClem3 жыл бұрын
Hello there. That tutorial is extremely clear and staightforward ! Thanks to you I was able to get the certificate ! Unfortunately, I still can't access my NAS (Nextcloud) and I'm probably still missing something but can't figure out what...
@officialismailshah2 жыл бұрын
❤️❤️❤️ respect Sir it was awesome and full of knowledge...
@ScheveninGaming4 жыл бұрын
How were you able to configure your sites with access lists to read your actual ip and not the proxied ip that cloudflare has you connecting as? When I put an access list on a site that only allows my public ip, I am still unable to access the site because of the cloudflare proxy making my ip appear as one of cloudflares many ips. I guess I am also asking if you proxy the sites which you have an access list on. How are you getting nginx pm to recognize your IP when you try to connect to your site behind cloudflare proxies?
@RobinGiel4 жыл бұрын
this video introduces me to nginx proxy manager :-) thank you
@jamesvdos38754 жыл бұрын
Awesome tutorial! keep up the amazing work!
@waichan26134 жыл бұрын
Thanks for your effort. Can I substitute truenas for snology nas in this case ?
@Nonilolsis2 жыл бұрын
Hi thanks for the video, but a couple of questions arose: - If you request a lets encrypt cert with npm and turn on the proxy mode afterwards on cloudflare, will the automatic cert renew work properly? - After enabling the proxy mode and visiting the domain for which you created an A record, which certificate is used the cloudflare one or the lets encrypt one? If the cloudflare one is used anyway (due to proxyied mode) why bother with lets encrypt?
@selfhosted2 жыл бұрын
Yes it will.
@Eriksonlove693 жыл бұрын
Very good tutorial, nice work
@selfhosted3 жыл бұрын
Thank you! Cheers!
@alanjrobertson2 жыл бұрын
Interesting vid - why the added complexity of Cloudflare and Docker though? Why not just install direct on the Linux box?
@kevinmeza2 жыл бұрын
Thank you so much this helped!
@exquisite18092 жыл бұрын
Great video! I ran into the same problem with the Cloudflare proxy needing to be disabled for the certs to get provisioned. One question though, does the enabling of proxy in Cloudflare DNS prevent the certs from being renewed? Any feedback will be appreciated :)
@MarcodeBock2 жыл бұрын
I have the same question. If I would guess, I assume the renewal won’t work in this way.
@gouthamshiv4 жыл бұрын
It was really great sir 👍🏻
@chrisbuckley93432 жыл бұрын
I used this guide to loosely finish up my Jellyfin install, but when I try to connect via a subdomain, I get a 504 error (gateway time-out). I had no A recoed for www, but I've added it. Should the content be my public IP? Any help would be appreciated.
@zandadoum Жыл бұрын
Heya, about Synology: while you're right that :80 and :443 are reserved on the Synology and a real hassle to change, if you're behind a ISP router, you can just redirect :80 and :443 on your router to something else. And run NPM in docker on your Synology. About snapshots: that's also possible on your Synology with snapshot replication. Just target your \volume1\docker folder and restore if needed.
@piersolenski3 жыл бұрын
Thanks, this was super helpful!
@netto_info2 жыл бұрын
I was curious to know which distribution you use on the desktop.
@karmaspcs9 ай бұрын
6:04 not working. error all over the place. there is a very importand step missing.
@MrAndroid20133 жыл бұрын
What if I wanted to change the ports from 5:39 AFTER it's already been configured? I can't seem to find the .conf file within docker.
@selfhosted3 жыл бұрын
You can just change them in the command and rerun it. As long as your files are there it will use the new ports and then go into your router and change them accordingly.
@stevebaros2 жыл бұрын
Thank you , this is a life saver
@xiaxiao75673 жыл бұрын
Very clear thanks! a lot! one question can you use the nginx proxy manger as an load balancer or?
@eliluong3 жыл бұрын
thanks, helped figure out the issue why nginx proxy manager was not getting SSL cert behind cloudflare!
@gabscar1 Жыл бұрын
Nice video. Not sure about the super simple bit, though. Thanks!
@SeanAnthony4 жыл бұрын
Great tutorials. I'm trying to following your NPM video, however I need to get docker running on a Ubuntu server. I'm using Proxmox and trying to place docker in LXC running Ubuntu. I'm getting all sorts of error that docker-ce has failed to load. I followed other videos that say it should work but I can't seem to get it working. I tried 20.4 and 18.04 and get the same error. Should I hang up trying to use the LXC and attempt the setup in Proxmox VM? Thanks for these tutorials they are helping me slowly get my Homelab up and running.
@kevinhughes98014 жыл бұрын
Great vid thanks for doing this
@andrewa32162 жыл бұрын
This stuff hurts my brain so much. So, does cloudflare work hand in hand with the ssl cert you get from letsencrypt? I assume there are now 2 certs? one for cloudfare and one for nginx?
@Breeegz2 жыл бұрын
I couldn't find the written guide.. It looks like you migrated to "noted" did you omit this one for a reason, or will it show back up in the future?
@geoffhalsey21844 жыл бұрын
Could you use a free hostname from No-IP as a home domain instead, with Cloudflare?
@leakthis72184 жыл бұрын
Unfortunately not.
@RaduRadonys8 ай бұрын
You can most probably. At least with free domains from DuckDNS (which is similar to No-Ip) it works.
@uppan37883 жыл бұрын
So what is the "DDNS route" that you mentioned at 9:25?
@mpt1262 жыл бұрын
Sorry to necro a 9 month old comment. I am looking into setting up NGINX to work with DUCK DNS using Cloudflare as domain manager. Did you ever get any progress with the DDNS route?
@PeterParker-ji8kg Жыл бұрын
@@mpt126 me too
@auronarcher3 жыл бұрын
When attempting to make the SSL cert at the 11minute mark I keep getting an error saying it is already in use????? Where did I go wrong?
@madsnygaard83544 жыл бұрын
Can you highlight specific benefits from using NGINX proxy manager via docker vs using the built-in DSM Proxy management if any? I do like the GUI of the NGINX proxy panel but I'd also like to avoid installation bloat in case it's not needed. Thanks :-)
@kratoz293 жыл бұрын
I tried to use NPM after using the DSM reverse Proxy but it didn't let me use the ports, maybe it's because they are being used by Synology services, I don't know, I'm sticking with DSM reverse proxy for now.
@mysteryliner2 жыл бұрын
Using all broadcasted services from synology, they each punch a hole in your firewall, And you're declaring to the world that you're hosting a synology server. So if there is a security exploit with synology, malicious parties will just try it on any synology service that's in the open. NPM, acts as the front desk and only opens 2 ports. It transfers you do whatever department without the need for an extra hole to get there
@MrEric3774 жыл бұрын
I just found your video, Thank you I was always missing the whole "how to setup external domain". My question is once I set this up can I use this internally as well? So Pihole(Local DNS provider) would direct traffic to cloudflare DNS which would give my ISP's IP and back inside my network. I guess I could just try it and see if it works.
@jaygreentree43942 жыл бұрын
With nginx proxy manager you can even have it connect to your cloudflare account to create dns records for you so you dont have to do both manually.
@pascalh5870 Жыл бұрын
it's also a good advice to run a fail2ban docker container which allows cloudflare to block rouge like IP's for enhanced protection of your services
@Rokegle1352 жыл бұрын
Honestly super detailed video and incredibly helpful sadly I can't make a ssl certifcate for whatever reason but still great video
@LetMattEntertainYou2 жыл бұрын
Everything was going great except I get an "Internal Error" in NGINX when trying to save with a Let's Encrypt certificate. Any ideas?
@escanor33943 жыл бұрын
Thanks for the video it's extremely helpful and I was able to get my setup working. I'm rather new to web security so I don't quite understand why it's necessary to have Let'sEncrypt and cloudflare both supplying certificate security. Couldn't Cloudflare do it alone? or couldn't Let'sEncrypt do it alone? Still wrapping my head around the role each component plays. In any case I appreciate the video!
@escanor33943 жыл бұрын
Also I was a bit surprised when I did docker-compose down and all my data got erased. Guess I need to make the volumes external?
@brbbst Жыл бұрын
Would be possible to give your hdd a new identity (virtualise it) and use it from outside (proxmox/docker)?
@faisalali7933 жыл бұрын
Very informative video. If you could zoom in on the content a little bit that would be perfect.
@selfhosted3 жыл бұрын
I'll keep that in mind. Thanks for watching!
@4Abaddon43 жыл бұрын
Thank you so much for your mentioning at 9:52 why my Proxy manager SSL cert assigning wouldn't work. It could not see the wan IP because of Cloudflare proxy ... man I feel dumb
@nissimalbilia3 жыл бұрын
Thanks for the guide :) Do I need to enter in cloudflare DNS management the external IP address of the synology, or the local address of the nas?
@_obscuritas_2 жыл бұрын
Did you find it out?
@RaduRadonys8 ай бұрын
@@_obscuritas_ External IP if you want the NAS to be accessible from the internet, or internal one if you just want local access. Internal local access will require a Cloudflare token to get the Let's Encrypt certificates though.
@fbifido23 жыл бұрын
@13:20 - this "Proxied" mode, does it work when you need to renew your certificates ???
@okseby3 жыл бұрын
That's what I'm wondering
@DamnJuhl3 жыл бұрын
Very helpful!
@bootifulghost86243 жыл бұрын
So how do I forward different machines from my router to nginx? Do I just setup a portforward of 80 and 443 for each IP of all the machines I want exposed? That's hella confusing
@selfhosted3 жыл бұрын
No. I would just setup domains for each machine in one NPM instance.
@bootifulghost86243 жыл бұрын
@@selfhosted Thanks for the fast reply, much appreciated. So from my understanding: I would run a docker NPM instance and connect all other docker services on the same machine into the same network and other machines (syno nas) also just through NPM with each having a specific subdomain and this should work. I'll try again and follow your video step by step.
@shaunpx13 жыл бұрын
Awesome guide! do you know how we could switch from using Mysql to Mongo DB or Couch DB NoSQL data base?
@ahmedaborady7883 Жыл бұрын
Problem i found with cloudflare after following all the steps and it all worked perfectly but cloudflare has kind of a limit 100mb so if u login to the synology nas on synology photos it'll login but if you try to upload a videos thats bigger than 100mb u'll get an error and it wont upload I've followed same steps using wix domain i have and mobile upload worked again
@okanerdem3 жыл бұрын
Why not CNAME ? You added as A what's different?
@jumpieva Жыл бұрын
how about using the CF cert for your domain when you do NOT want to expose anything to the internet? I just want trusted certs on all my internal devices and not rely on self signed. I tried to generate an origin cert and upload to NPM, and using a private IP DNS record. Workflow wise this works, but my browser doesn't like it, I probably messed something up. Is there any way to accomplish this (I'm not even a fan of the tunnel option for just myself), without having to setup my whole CA in house?
@RK-ly5qj4 жыл бұрын
That music is enjoying ^^
@Mick_C Жыл бұрын
hello, i tried, follow all the step but it does'nt work. Always a 522 error. Don't understand why.
@byrk0ff2 жыл бұрын
Hello, will this option work when my ISP assigns multiple users to one IP?
@GrishTech4 жыл бұрын
nginx proxy manager vs traefik Which do you prefer or is better? I heard that traefik can easily and seamlessly tie into a k8's cluster.
@selfhosted4 жыл бұрын
Traefik is unnecessary. It’s not bad but I think it’s way overdone for what it does.
@bigups432 жыл бұрын
Just FYI you can do the cert in NGINX proxy manager with CloudFlare proxy enabled.
@bp-1995 Жыл бұрын
so I'm running nginx on a home assistant VM in proxmox, but when I go to the subdomains I create it just takes me to the login page of nginx, any suggestions?
@OzDeaDMeaT3 жыл бұрын
I keep getting a 502 error. I am hosting this docker container on the same system that i am trying to proxy. Would that cause an issue?
@TheAlCowlings4 жыл бұрын
9:08 So what do I do if I'm behind carrier-grade NAT? (the IP my ISP tells me I have is different from the one the rest of the internet actually sees)
@brettmatthews98864 жыл бұрын
Get new internet with a public address
@tomgrey30464 жыл бұрын
@@brettmatthews9886 funny and helpful man, there is plenty of "tinkrered", copy-pasted stuff how to manage domains and proxies using port forwarding, but no practical guides how to bypass CGNAT with cloudflare, ngnix, docker, pi's, syno's or any other stuff. Tunnelling is one of the methods, even on synology...
@kissp793 жыл бұрын
is there a link to the text that needs to be copied? And where to copy it?
@abdoulouhichi4946 Жыл бұрын
is it possible to do this senario using linode vps brother !?
@voiceoftreason17602 жыл бұрын
doesn't enabling the cloudflare proxy again on the A record make it impossible for the acme client to renew your ssl certificate?
@selfhosted2 жыл бұрын
For some reason it doesn’t. Not in my experience.
@irwige2 жыл бұрын
No matter how many times I do this, as soon as I turn on Proxy it stops working?
@labaland3 жыл бұрын
under "Improve security"i only have "Automatic HTTPS Rewrites" i have no options to set to full. Or is it the same thing? :)
@belizejackie4 жыл бұрын
i kept getting 502 Bad Gateway on my vps .. try to forward docker container
@wraithxxiv4 жыл бұрын
Great video! I followed along and everything seems to function, as in pages load. I was able to get the SSL cert to generate, cloudflare set to full and my A record is set to proxied. I chose to expose Seafile. I still get the "Your connection to this site isn't fully secure" error. Any suggestions?
@wraithxxiv4 жыл бұрын
Just in case someone else stumbles across this same issue I resolved it with help from this forum. forum.seafile.com/t/private-seafile-page-connection-is-not-fully-secure-with-https-enabled/11826/3
@SeanAnthony4 жыл бұрын
Another question I'm getting internal error with NPM when requesting a cert from LetsinEncrypt. Do I need to open ports on my home router?
@selfhosted4 жыл бұрын
No! You need to make sure the cloudflare protection is disabled before requesting certs then enable it when it's done.
@OzDeaDMeaT3 жыл бұрын
What is the difference between your nginx and the standard nginx container?
@NickRO19894 жыл бұрын
You quickly mentioned that you used a VM in Proxmox. Is there any reason why you didn't use a Ubuntu container? I am trying to avoid the overhead of a VM because my system resources are limited and I use my Proxmox for many other services. For some reason I cannot get NPM to work in a container. If you could share some light on this, maybe a VM would be the only way to go.
@selfhosted4 жыл бұрын
Nick O It’s known to not work well in containers if at all. So I use a VM and it works really well for me. Use a very light OS. Maybe Ubuntu server. It only needs like a gig of ram.
@NickRO19894 жыл бұрын
@@selfhosted Yes I get a internal error whenever I want to get a SSL cert. When I checked the github, many people have the same issue. I hope they release a LXC template for NPM. That would make it PERFECT! Thanks for the video tho!
@selfhosted4 жыл бұрын
Nick O keep me posted if they do! Thank you!
@mstardomfinance83894 жыл бұрын
I am subscribed to you. Can you increase your font size of the text on the website you are displaying in your future videos. Hit the control button then click the plus sign on your keyboard to increase the font size. Thanks.
@jamesstones98273 жыл бұрын
Hey! Just tried this, but when i connect the orange proxy in Cloudflare, this stops working. I opened the 80,443 ports, and the 2000 port thats redirecting to my service. dont know where it might went wrong. Any help?
@bradscoolio3 жыл бұрын
I've found Cloudlared Argo Tunnels to be an effective way of exposing services.
@selfhosted3 жыл бұрын
Dont they charge for that though?
@bradscoolio3 жыл бұрын
@@selfhosted there's something Argo related that's paid, but I'm not sure what it's offering. I seem to be able to spin up infinitely many tunnels, with each on a subdomain, and I've got an ansible role to deploy them.
@selfhosted3 жыл бұрын
@@bradscoolio You've peaked my interest. Can you link me to some docs on how to spin these up?
@robersniper2 жыл бұрын
So I cant use a proxied cloudflare record?
@phil2of33 жыл бұрын
Came here because my ssl certificate was failing, who knew you had to temporally toggle the proxy status to make it work.
@PCMagik2 жыл бұрын
why NginX Proxy Manager works with apps in docker (in same docker where is npm)? with other servers still i need to put ports with domain name? (servers are other VMs with diffrent ip address) can You explain me that? what im doing wrong?
Жыл бұрын
after adding the domain to cloudflare in this way and redirecting the service via ngiex proxy manager, I keep getting error Origin is unreachable Error code 523 I will add that the domain is correctly redirected to cloudflare servers thunk you help:)
@sturdza70923 жыл бұрын
I've been trying to get dsm working behind npm for a few days and no success, every time i get error 502, however for anything but dsm it works great. Does anyone have any idea what the problem might be?