Full Node.js Deployment - NGINX, SSL With Lets Encrypt
VloĆŸit
- Äas pĆidĂĄn 22. 09. 2019
- In this video we will do a full deployment of Node.js using PM2 and an NGINX reverse proxy and a free SSL from Lets Encrypt to a DigitalOcean droplet
Commands & Steps:
gist.github.com/bradtraversy/...
$10 Free Digital Ocean Credits:
m.do.co/c/5424d440c63a
DigitalOcean Docs & Tutorials:
www.digitalocean.com/communit...
www.digitalocean.com/communit...
www.digitalocean.com/communit...
www.digitalocean.com/docs/dro...
đ Become a Patron: Show support & get perks!
/ traversymedia
Website & Udemy Course Links:
www.traversymedia.com
Follow Traversy Media:
/ traversymedia
/ traversymedia
/ traversymedia - VÄda a technologie
This is the same process we will be using to deploy the API in my upcoming course "Building APIs With Node.js, Express & MongoDB" where we build an extensive API for a bootcamp directory app. Keep an eye out for it in the next month. Then I will be doing a Vue course which will include a frontend UI.
Also, if you are interested in the SSH crash course - czcams.com/video/hQWRp-FdTpc/video.html
ohhh great!!!!!!!!!!!!!!!!!! i will wait it....
thank's from Senegal
Traversy Media Cool. Iâm just finishing your Modern JS course.
Iâm a beginner and I learned a lot.
For sure I will take this new Node course.
Thanks from Brazil.
Wow!! Thanks for this, Brad!
Thx brad, i will wait for the course.
If you love Traversy Media turn this button blue
đIf you love tech subscribe to my channel (I'm gifting iPhones to my next 100 subscribers). Peace â
You've just made my day, Brad... I was learning all this stuff on my own in a fragmented way, and then a video with all this stuff together...
Thanks a million!
You're an absolute legend. I needed several days to figure this out
A year and a half later and this is still pure gold, never disappointed in your content! Keep up the great work.
I was waiting for this for a long time, thank you.
i love how this guy always puts in so much effort to teach. i really appreciate it so much
Please Any idea how to add enviroment variables?
Hi Brad! You are a freaking awesome teacher! I was going through so much documentation on nginx and in the end it is your solution that is the absolutely best first step. I learned the basic of web development from you 6 years ago and now I work in a big company with industrial code complexity. And still you are my first choice when I encounter something new. Your steady clear voice and clear steps. You are just awesome! You always find the necessities without simplifying it into something no useful. Amazing!
This is exactly what I needed for work this week...thank you a lot, Brad!
I didn't even realise how long and how much i wanted this video until i saw the notification :D
Thanks for all your tutorials and hard work that goes into them!
This was incredibly helpful... I was struggling with it for hours until i found this video. It appeared that i didn't configure well the firewall, but this video really made it really clear.
Thanks (again), Brad!
For a large scale app on AWS here is what i do:
1. All static js/css/img go to a s3 bucket.
2. My nodejs app goes to ec2 with pm2 for clustering.
3. An application load balancer is in front of ec2.
4. All of this is behind cloudfront. My dns points to cloudfront. Cloudfront looks at url and decides if req must go to s3 or elb. All s3 requests are cached by cloudfront. No caching for elb requests
5. I use amazon certificate mgr for free ssl certificate that terminates at cloudfront
This is the most scalable deployment arch that i could do on aws. No nginx to manage. All pieces except your node js code is managed by aws.
I hope folks looking at aws get some ideas from this
Is there any tutorial (blog/video) that does all this?
Awesome, would love to know more.
Unfortunately i do not have the time right now to make a video or write a blog on this. But rest assured this is working very well for me. If you have specific questions i can answer here
Amazon is expensive, for small and medium projects DO is perfect... and sometimes large projects can run using digital ocean.
@@thymarques at this time, AWS is just too feature rich. I can do log analysis with just a couple of clicks with kinesis-agent, firehose and elasticsearch service. I can put images on s3 and run rekognition to identify nudity, i can just dump stuff into s3 via firehose and figure out later what to do with it. Not to forget managed redis, mongo, rds what not. For less ambitious projects (note i did not say smaller), other places may be ok but if you see that this might go places, i would want to be covered. DO is great no doubt but AWS as an ecosystem is just too rich today to pass up
Honestly, these tutorials are the only ones that make any sense. Thank you, Mr. Traversy. These videos are lifesaving.
Unbelievably useful tutorial Brad. I could have struggled for weeks with this instead of only an hour or two. Many thanks!
Wow, this is the easiest Let's Encrypt SSL tutorial that I've ever seen. Other ones I've seen are much more complicated. Amazing!
This is the only chanel I run to when I want a straightforward and without nonsense video. To be frank Mr Brad is fantastic!! Wish I had a teacher like this in my high school days..
You are the king ! I love you !! A normal and logical, clear tutorial on setting up NGINX from start to finish . You also documented it in text.
This deserves so many more views. Thank you so much
This is just what I was looking for, I struggled to figure out the best way to setup my nodejs server with SSL, this is awesome, thanks dude
Best video on this subject ever seen!
Congrats and Thanks - Very helpful.
Wow this couldn't have come at a better time. Brad you are seriously the man. Thank you so much for everything you do!
watching two full videos ad. 15 mins for supporting you. love you :)
Thanks man, that is awesome. I appreciate that :)
@@BxlFlorian thanx brother
Although I think his channel would rank higher in Adsense if the ads displayed here actually generated revenue for advertisers, which goes against this kind of practice
@@BxlFlorian They can still track engagement
i literally spent a week trying to follow other guides without success, but then you freaking SAVED ME with this. GOOD GOD THANK YOU
Brad, you're amazing, thanks so much for this! Next time we need to learn anything tech related, we'll try out your courses. Cheers!
You continue to be the best programming educator on youtube. Thank you
You always seem to upload the right video at the right time. Awesome work.
Brad,
This was an AMAZING tutorial. Thank you, to the 1,000th degree!
I spent three days straight trying to properly deploy my apps into some subdomains I had set up early on to no avail. Found your video and managed to set it up properly in a flash! Thank you very much from the bottom of my heart, mate!
Thank u , Brad. your videos are very helpful. I always watch them immediately after you 've posted !
Best tutorial ever man, this was so easy to follow. Your explanations are crystal clear. Thank you so much!
Really good tutorial! If you continue creating content of this high quality you will grow a lot!
A really great video Brad! Thank you so much đ one with docker on top would be interesting too, or a more into farther security things to do on deployment.
Always enjoy your tutorials, valuable info every time. :)
Brad is the web development wizard. This is just what I was looking for! đđŒ
Can't believe I need this today and it was uploaded yesterday. Liking it before i watch it!
Damn man. Thanks a lot! About a month ago I had to figure out all of this by myself (never worked with nginx and let's encrypt before). It was such a pain in the ass... Now nobody will have to suffer this much anymore =D
I love your CZcams channel, besides learning new things I train my listening with native English haha ââI greet you from Brazil đ§đ·đ
4 years and this tutorial is still useful. Great job!
Awesome video mate, had some confusion regarding the reverse proxy set up of NIGINX, you cleared away all my doubts. Thanks a ton for that, have a nice day!!
You are the best bro, This is exactly what I was looking for recently. Thank a million times.
Omg I have learned so much with you, every week I have to learn something new and always you are there.
This is a bless. I've been searching CZcams in the last 2 days. That's exactly what I needed. Would be nice to see a.sequel on how to add react app to this. Thanks đ
Brad, thank you for this tutorial and other work you do! It saved hours of my time! đȘ
Always excited to view notification from your channel. thanks bro.
Thank you so much. I was waiting for this tutorial.
Amazing, still super relevant as of today! More than 2 years later. Just had a small hiccup at the end with certbot with a package migration to python3, python3-certbot. Thanks!
You have no idea how useful and good this video was for me. Thanks so much!
Fantastic information Brad. You are the best. This tutorial was clear and easy to follow. Many thanks, Dixon
Superb work as always. Would love to see this but with Docker containers rather than manual installations on the environment for node, npm etc.. For a more industry standard example
Thank you SixMuch Brad from the bottom of my heart I was thinking yesterday about NGINX and doesn't how to aproach
Thank you! Just what i needed! Would love to see more about security and also continuous integration!
The configure process is the same no matter what you use. Great video, it will help devs doing their first release!
This might just be the most useful video on YT! or at least the one I find myself coming back to year after year. I'm most comfortable on the frontend and anything web ops always scares me so I really, really appreciate this step by step video
Bro
I just freaking needed this for my website!!!!
THANK YOU! I'VE BEEN STRUGGLING WITH THE NGINX
I like your devops tutorials very much. Thank you!
I think all of your videos are great! It would be very interesting to hear a comparison between different cloud vendors (PaaS, IaaS) like Heroku for website development and maybe domain hosts as well. A video regarding security (what you need to think about) for fullstack web development would also be great! At least I feel that those are some knowledge gaps :)
Thank you for the great tutorial! This really helped me out. If people are trying to install on Ubuntu 20.0.4, the command for certbot is: sudo apt install certbot python3-certbot-nginx
Do I dare run a command from the CZcams comments section? Yes, yes I do dare. Thank you lol
Thanks a lot for this video. It's worth mentioning this reverse proxy method can also be used to secure API interaction. I used it to secure my connection to a Geth node. Very useful!
This is very useful! Thanks for posting this Brad!
You guys never disapoint its super clear
My tinkering around with Ubuntu some time back made this video super easy to understand and make sense of technical stuff it. Thanks a lot
Dude nice work, you make it so easy. You made my whole year.
Best video on this topic that I've ever seen. Saved me a tonne of trouble. Thank you!!
i have to thank you, this video did help me to deploy a slack app with docker in a digital ocean droplet using ngnix ! i learn a lot thanks to this
Awesome, straight to the point. Looking forward your new vue and node courses. Some suggestions for future crash courses: nginx more detailed, web sec, deployments pipeline, golang web dev. Your 2 golang crash courses have been very useful for me. Best wishes
Great video. Short & sweet. Thank you!
Thank you so much, I've searched for how to point a domain to AWS elastic IP and how to install SSL, your videos helps a lot, thanks!
Everything was straight to the point. Just the Perfect Video I needed. You earned yourself a new follower. đ€©
My mind:"I have to learn this random technology some day."
Traversy Media the following day:
This video saved my life. I love how well everything was explained.
Dude you are the best!
I love your Github profile, you are inspiring bro!
this guy never miss man. thank you so much.
This is the most interesting video I watched in a long time! Thank you.
Thanks a lot Brad, It was really concise and to the point, saved a lot of time đ
Thank you for this. It helped me 4 years later!!
This is the most helpful video I've seen on CZcams. đ
Excellent tutorial as usual! I had a couple of troubles that I thought I'd help people get around:
1) Nginx was stuck on a 404, mainly because I'd used a bunch of tutorials across the web that got the whole config tied up. If this happens to you, just uninstall and reinstall and you should be good to go with this tutorial.
2) When running the add-apt-repository ppa:certbot/certbot command, I got a message saying that this ppa was deprecated. Don't fret, just skip that command - run the update and move on to the apt-get install python-certbot-nginx.
Once again, superb, Brad! Can't thank you enough!
thanks brad !!
I was waiting for this..
Brad I really love your channel this is exactly what I was looking for thank you.
Woow This is such a great and complete explanation of deploying nodejs . Thank You so much !!!
Thank you very much Brad. This was extremely helpful :)
Hey mate. Thank you so much for all your work.
Awesome Video Brad. 1 Million Very soon
That was an awesome tutorials..thanks and love from Indiaâ„ïž
I like the way you force big service companies to do things in favor of your followers to learn things đ
So much of information yet so simply explained. #Respect
Man this is an awesome tutorial. I learned a lot! Trying to serve my application for like to days over https. No it finally works. Thank you very much! You another follower ;-)
This is EXACTLY what I needed. Thank you â€ïž
Great tutorial! I really appreciate the way you teach. Thank you so much!
Your channel never disappoints, I've been worrying on how to use nginx on digitalocean. And today I got the full package, SSL included.
This was exactly what I was looking for
Dude this video is lit, easy to follow steps if you know what is a frontend and a backend
Congratulations! Follow the way you did and it worked.
@Travery Media I want to say Thank you. You Probably will never read this. In case you do, I want you to know you are doing a great job. You are impacting people not just in the USA but from all over the world (I currently live in DR). Most of the things I know I learned from your channel or from your Udemy course. Now I am working as a freelancer and able to support my family Thank you, man.
Thank you! saved me from days of frustration!
Wow it's uploaded on my birthday. Thanks
Really awesome, concise but complete
Super useful video, learned a lot! Thank you!
Thank you for this tutorial it really helped me!
Very informative, I learned many new things and polished some other things, thanks a lot.
It would be nice to do a docker node deployment tutorial.
He already has that czcams.com/video/hP77Rua1E0c/video.html
He already has the docker tutorial and it is the best on CZcams