Full Node.js Deployment - NGINX, SSL With Lets Encrypt

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 พ.ย. 2024

ความคิดเห็น • 570

  • @TraversyMedia
    @TraversyMedia  5 ปีที่แล้ว +156

    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 - th-cam.com/video/hQWRp-FdTpc/w-d-xo.html

    • @patricklionnel4073
      @patricklionnel4073 5 ปีที่แล้ว

      ohhh great!!!!!!!!!!!!!!!!!! i will wait it....
      thank's from Senegal

    • @wilsonfaustino
      @wilsonfaustino 5 ปีที่แล้ว

      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.

    • @ronaldoolesco7493
      @ronaldoolesco7493 5 ปีที่แล้ว

      Wow!! Thanks for this, Brad!

    • @vaibhavnadgonde4397
      @vaibhavnadgonde4397 5 ปีที่แล้ว

      Thx brad, i will wait for the course.

    • @Pentaloft
      @Pentaloft 5 ปีที่แล้ว

      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 ✌

  • @kayderl
    @kayderl 3 หลายเดือนก่อน +2

    This video might be 4 years old. But yet still so relevant. I’ve watch a whole ton of tutorial on this subject and nobody explains it as well as Brad. Thanks, Brad!

  • @chailandau2798
    @chailandau2798 2 ปีที่แล้ว +5

    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

    • @joja4323
      @joja4323 2 ปีที่แล้ว +1

      Do I dare run a command from the TH-cam comments section? Yes, yes I do dare. Thank you lol

  • @doncorleone3901
    @doncorleone3901 5 ปีที่แล้ว +259

    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

    • @akt255
      @akt255 5 ปีที่แล้ว +11

      Is there any tutorial (blog/video) that does all this?

    • @zeytelaloi
      @zeytelaloi 5 ปีที่แล้ว

      Awesome, would love to know more.

    • @doncorleone3901
      @doncorleone3901 5 ปีที่แล้ว

      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

    • @thymarques
      @thymarques 5 ปีที่แล้ว +12

      Amazon is expensive, for small and medium projects DO is perfect... and sometimes large projects can run using digital ocean.

    • @doncorleone3901
      @doncorleone3901 5 ปีที่แล้ว +5

      @@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

  • @codinginflow
    @codinginflow 2 ปีที่แล้ว +16

    You're an absolute legend. I needed several days to figure this out

  • @EduardKaresli
    @EduardKaresli 5 ปีที่แล้ว +53

    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!

  • @sf9000
    @sf9000 2 ปีที่แล้ว +1

    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!

  • @Nintron
    @Nintron 3 ปีที่แล้ว +9

    A year and a half later and this is still pure gold, never disappointed in your content! Keep up the great work.

  • @_attempter
    @_attempter 2 ปีที่แล้ว

    i literally spent a week trying to follow other guides without success, but then you freaking SAVED ME with this. GOOD GOD THANK YOU

  • @pengin3164
    @pengin3164 5 หลายเดือนก่อน

    4 years and this tutorial is still useful. Great job!

  • @yoitslemonboy6988
    @yoitslemonboy6988 4 ปีที่แล้ว +24

    i love how this guy always puts in so much effort to teach. i really appreciate it so much

    • @ikeonuorah1792
      @ikeonuorah1792 3 ปีที่แล้ว +1

      Please Any idea how to add enviroment variables?

  • @haraldcarlsten6238
    @haraldcarlsten6238 ปีที่แล้ว +2

    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!

  • @rizibizi4995
    @rizibizi4995 10 หลายเดือนก่อน

    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

  • @ststeve499
    @ststeve499 5 ปีที่แล้ว

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

  • @DeepakRai-tf8un
    @DeepakRai-tf8un 5 ปีที่แล้ว +35

    watching two full videos ad. 15 mins for supporting you. love you :)

    • @TraversyMedia
      @TraversyMedia  5 ปีที่แล้ว +6

      Thanks man, that is awesome. I appreciate that :)

    • @Deepakrai767622
      @Deepakrai767622 5 ปีที่แล้ว +1

      @@BxlFlorian thanx brother

    • @randomuser66438
      @randomuser66438 5 ปีที่แล้ว +1

      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

    • @randomuser66438
      @randomuser66438 5 ปีที่แล้ว +1

      @@BxlFlorian They can still track engagement

  • @imanqoly
    @imanqoly 2 ปีที่แล้ว

    I like the way you force big service companies to do things in favor of your followers to learn things 👌

  • @abulfazlhaidary4625
    @abulfazlhaidary4625 5 ปีที่แล้ว +36

    I was waiting for this for a long time, thank you.

  • @Tomtom-dw9si
    @Tomtom-dw9si 4 ปีที่แล้ว

    If there is anything frustrating in this world, it is when you try so hard to do something, and then somebody comes and explain it to you as if it is the easiest, most unimportant thing ever. HAVE A LITTLE MODESTY IN THE WAY THAT YOU SPEAK. not everybody is sharped experienced developers as you are. But thanks anyway ;) It is very helpfull.

  • @Kenganhkl
    @Kenganhkl ปีที่แล้ว

    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!

  • @danielcaldas3682
    @danielcaldas3682 3 ปีที่แล้ว

    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!

  • @jaymefrantz8783
    @jaymefrantz8783 6 หลายเดือนก่อน

    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

  • @Bartman2Dilaw
    @Bartman2Dilaw ปีที่แล้ว +4

    Best video on this subject ever seen!
    Congrats and Thanks - Very helpful.

  • @MadJDMTurboBoost
    @MadJDMTurboBoost ปีที่แล้ว

    Thanks for this! Followed along for my Node app on my EC2 instance and it worked really well. One thing to note, securing Nginx with Let's Encrypt this way is now deprecated but Digital Ocean had a quick step by step write-up to show how to do this currently.

    • @cloudnimbus-
      @cloudnimbus- ปีที่แล้ว +3

      Can you share the link for others

    • @d0m2288
      @d0m2288 ปีที่แล้ว

      @@cloudnimbus- Can't post links in youtube comments, but I searched "digitalocean ec2 letsencrypt nginx" using google and a few relevant articles from Digital Ocean appear. Choose based on what's appropriate for you.

  • @guillermomolins3683
    @guillermomolins3683 3 ปีที่แล้ว

    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!

  • @Jarajesh
    @Jarajesh 4 ปีที่แล้ว

    You guys never disapoint its super clear

  • @pilatec
    @pilatec 4 ปีที่แล้ว

    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

  • @martindurrant5505
    @martindurrant5505 3 ปีที่แล้ว

    Excellent Brad just what I needed, the video title possible needs to include 'vps' as I didn't find this video straight away. Also sudo apt-get install python-certbot-nginx is now sudo apt-get install python3-certbot-nginx

  • @mosey6615
    @mosey6615 ปีที่แล้ว

    Thank you for this. It helped me 4 years later!!

  • @pauldudley1273
    @pauldudley1273 5 ปีที่แล้ว +1

    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!

  • @causecaos
    @causecaos 5 ปีที่แล้ว

    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

  • @just_anonym883
    @just_anonym883 3 ปีที่แล้ว

    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!

  • @gppproton
    @gppproton 5 ปีที่แล้ว +103

    It would be nice to do a docker node deployment tutorial.

    • @alittleextra2832
      @alittleextra2832 5 ปีที่แล้ว +5

      He already has that th-cam.com/video/hP77Rua1E0c/w-d-xo.html

    • @doncorleone3901
      @doncorleone3901 5 ปีที่แล้ว +3

      He already has the docker tutorial and it is the best on TH-cam

  • @ProgrammingwithPeter
    @ProgrammingwithPeter 5 ปีที่แล้ว +1

    The configure process is the same no matter what you use. Great video, it will help devs doing their first release!

  • @khalidelgazzar
    @khalidelgazzar ปีที่แล้ว +1

    Great video. Short & sweet. Thank you!

  • @guillermomarindavila5779
    @guillermomarindavila5779 2 ปีที่แล้ว

    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

  • @runningthenorth-west516
    @runningthenorth-west516 4 ปีที่แล้ว

    Honestly, these tutorials are the only ones that make any sense. Thank you, Mr. Traversy. These videos are lifesaving.

  • @waddkara
    @waddkara 4 ปีที่แล้ว

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

  • @schoolbook1
    @schoolbook1 2 ปีที่แล้ว

    This dude is extraordinary teacher.

  • @nutShell_studios
    @nutShell_studios 9 หลายเดือนก่อน

    This video saved my life. I love how well everything was explained.

  • @g-luu
    @g-luu 5 ปีที่แล้ว +7

    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

  • @aakashr79
    @aakashr79 2 ปีที่แล้ว

    Hey. Just wanted to let you know. You saved my life. From AWS. Thanks.

  • @luquipe4938
    @luquipe4938 ปีที่แล้ว

    You have no idea how useful and good this video was for me. Thanks so much!

  • @aotechdev
    @aotechdev 5 ปีที่แล้ว +1

    Thank you SixMuch Brad from the bottom of my heart I was thinking yesterday about NGINX and doesn't how to aproach

  • @MULTICODE
    @MULTICODE 5 ปีที่แล้ว

    Traversy Media, my best channel to become a FullStack JavaScript developer

  • @arielspalter7425
    @arielspalter7425 3 ปีที่แล้ว

    This is a bless. I've been searching TH-cam 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 👍

  • @pitisradu
    @pitisradu 5 ปีที่แล้ว +3

    This is exactly what I needed for work this week...thank you a lot, Brad!

  • @yte50
    @yte50 2 ปีที่แล้ว

    Your channel never disappoints, I've been worrying on how to use nginx on digitalocean. And today I got the full package, SSL included.

  • @wetbadger2174
    @wetbadger2174 3 ปีที่แล้ว

    Thank you! After wasting many days of my life on this, your tutorial got my app online. Digital Ocean's placeholder page tells you to modify locations in nginx.conf but doesn't tell you what to put there!

  • @hitoishidas4423
    @hitoishidas4423 3 ปีที่แล้ว

    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!!

  • @hellfishii
    @hellfishii 4 ปีที่แล้ว

    Dude this video is lit, easy to follow steps if you know what is a frontend and a backend

  • @timgraf7933
    @timgraf7933 ปีที่แล้ว

    I learned in 23 minutes more then in one year. Thank you.

  • @80Vikram
    @80Vikram 5 ปีที่แล้ว +1

    For Let's Encrypt, we can do it auto renewal in case somebody forget to do it manually. Refer to "Deploying Let’s Encrypt on an Amazon Linux AMI EC2 Instance" medium article.

  • @mykalimba
    @mykalimba 5 ปีที่แล้ว

    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!

  • @krizheijnen
    @krizheijnen 4 ปีที่แล้ว

    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!

  • @erics3860
    @erics3860 2 ปีที่แล้ว

    Best video on this topic that I've ever seen. Saved me a tonne of trouble. Thank you!!

  • @serhiimamedov
    @serhiimamedov 5 ปีที่แล้ว +1

    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

  • @degraphe8824
    @degraphe8824 5 ปีที่แล้ว +6

    Bro
    I just freaking needed this for my website!!!!

  • @johnthompson5034
    @johnthompson5034 2 ปีที่แล้ว

    Unbelievably useful tutorial Brad. I could have struggled for weeks with this instead of only an hour or two. Many thanks!

  • @dyrellius
    @dyrellius 5 ปีที่แล้ว

    You always seem to upload the right video at the right time. Awesome work.

  • @faturachmandwiputro6517
    @faturachmandwiputro6517 4 ปีที่แล้ว +2

    THANK YOU! I'VE BEEN STRUGGLING WITH THE NGINX

  • @kostas71374
    @kostas71374 5 ปีที่แล้ว +1

    Currently working on your nodejs course after finishing the javascript course.

  • @michaelappiah-kubi2829
    @michaelappiah-kubi2829 5 ปีที่แล้ว

    Can't believe I need this today and it was uploaded yesterday. Liking it before i watch it!

  • @SuperMBARutgers2013
    @SuperMBARutgers2013 ปีที่แล้ว

    This is the most interesting video I watched in a long time! Thank you.

  • @arniekevin2830
    @arniekevin2830 4 ปีที่แล้ว

    The best! Although the installation of certbot might not work on others due to the difference of Ubuntu version. You can just search in the google on how to install it on the version of ubuntu that you are using. but the application is the same.

  • @theemacsen1518
    @theemacsen1518 5 ปีที่แล้ว +1

    Brad reading our minds again...

  • @limitlesskode
    @limitlesskode 3 ปีที่แล้ว

    This video just saved me as a senior developer 😂.
    My deployment was in laravel though.

  • @tomdaniels6232
    @tomdaniels6232 5 ปีที่แล้ว

    Wow this couldn't have come at a better time. Brad you are seriously the man. Thank you so much for everything you do!

  • @joja4323
    @joja4323 2 ปีที่แล้ว +1

    This is EXACTLY what I needed. Thank you ❤️

  • @supersoul6893
    @supersoul6893 ปีที่แล้ว

    Everything was straight to the point. Just the Perfect Video I needed. You earned yourself a new follower. 🤩

  • @alecmather
    @alecmather 4 ปีที่แล้ว +1

    You continue to be the best programming educator on youtube. Thank you

  • @kayderl
    @kayderl 4 ปีที่แล้ว

    This is the most helpful video I've seen on TH-cam. 👍

  • @avinashgardasalgonquin4371
    @avinashgardasalgonquin4371 2 ปีที่แล้ว

    Dude you are the best!
    I love your Github profile, you are inspiring bro!

  • @LeonardoSantos-mt9uv
    @LeonardoSantos-mt9uv 5 ปีที่แล้ว

    I love your TH-cam channel, besides learning new things I train my listening with native English haha ​​I greet you from Brazil 🇧🇷😁

  • @raimneves
    @raimneves 2 ปีที่แล้ว

    Congratulations! Follow the way you did and it worked.

  • @sandipsadhukhan9287
    @sandipsadhukhan9287 5 ปีที่แล้ว +2

    this is what I am looking for
    love from india

  • @80Vikram
    @80Vikram 5 ปีที่แล้ว

    TAZ for this awesome video.
    1 Downvote is from AWS as you've used DigitalOcean in the tutorial

  • @sommie4935
    @sommie4935 5 ปีที่แล้ว +16

    My mind:"I have to learn this random technology some day."
    Traversy Media the following day:

  • @HumAnTarg3t
    @HumAnTarg3t ปีที่แล้ว

    i think you just saved me from rewriting a lot of code, gonna try this method. thanks :)

  • @alexisdauli8537
    @alexisdauli8537 5 ปีที่แล้ว

    Always excited to view notification from your channel. thanks bro.

  • @kid_kulafu_1727
    @kid_kulafu_1727 4 ปีที่แล้ว

    this guy never miss man. thank you so much.

  • @lehoangnam1400
    @lehoangnam1400 5 ปีที่แล้ว

    Thank u , Brad. your videos are very helpful. I always watch them immediately after you 've posted !

  • @shaunmacdougall340
    @shaunmacdougall340 3 ปีที่แล้ว

    Dude nice work, you make it so easy. You made my whole year.

  • @noahpedraza2659
    @noahpedraza2659 2 ปีที่แล้ว

    Thank you! saved me from days of frustration!

  • @afaaqahmedsaqi
    @afaaqahmedsaqi 3 ปีที่แล้ว

    Really awesome, concise but complete

  • @heycherry100
    @heycherry100 5 ปีที่แล้ว

    Really good tutorial! If you continue creating content of this high quality you will grow a lot!

  • @Andy-kr6ol
    @Andy-kr6ol 3 ปีที่แล้ว

    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!

  • @basiccodingwithadam8125
    @basiccodingwithadam8125 5 ปีที่แล้ว

    Brad is the web development wizard. This is just what I was looking for! 🙏🏼

  • @joshmatthewtalplacido1644
    @joshmatthewtalplacido1644 4 ปีที่แล้ว

    Wow it's uploaded on my birthday. Thanks

  • @ayanle9133
    @ayanle9133 5 ปีที่แล้ว +1

    Brad,
    This was an AMAZING tutorial. Thank you, to the 1,000th degree!

  • @jefjef418
    @jefjef418 4 ปีที่แล้ว

    Omg I have learned so much with you, every week I have to learn something new and always you are there.

  • @adamkarafyllidis9264
    @adamkarafyllidis9264 5 ปีที่แล้ว

    Thank you! Just what i needed! Would love to see more about security and also continuous integration!

  • @abhisheksinha9027
    @abhisheksinha9027 5 ปีที่แล้ว

    So much of information yet so simply explained. #Respect

  • @thebrucecyou
    @thebrucecyou 5 ปีที่แล้ว +1

    This was exactly what I was looking for

  • @Davidkiania
    @Davidkiania 2 ปีที่แล้ว

    Brad I really love your channel this is exactly what I was looking for thank you.

  • @aniekutmfonekere740
    @aniekutmfonekere740 3 ปีที่แล้ว

    here am i in 2021 and this video is still of help
    Thank to @Traversy Media have learnt a lot from you

  • @Mayankkumargeek
    @Mayankkumargeek 4 ปีที่แล้ว

    Awesome Video Brad. 1 Million Very soon

  • @dixondeuxyeux
    @dixondeuxyeux 3 ปีที่แล้ว

    Fantastic information Brad. You are the best. This tutorial was clear and easy to follow. Many thanks, Dixon

  • @MaximeCHEVASSON
    @MaximeCHEVASSON ปีที่แล้ว

    In order to gain time during DNS propagation, you can edit your hosts file to target the server's ip.
    A cool small software is HostsMan that allow to do this pretty quickly, and it grant no dev down time.

  • @tibielias
    @tibielias 4 ปีที่แล้ว

    This is very useful! Thanks for posting this Brad!

  • @hajajmaor
    @hajajmaor 3 ปีที่แล้ว

    Amazing video, straight forward, no bs