I'm now VPS red pilled (and protecting with CloudFlare)

Поделиться
HTML-код
  • Опубликовано: 21 дек 2024

Комментарии • 382

  • @joshrogan3577
    @joshrogan3577 9 месяцев назад +161

    Babe wake up the daily Web Dev Cody DDOS video just dropped

    • @kathenae
      @kathenae 9 месяцев назад +3

      😂😅

    • @SeibertSwirl
      @SeibertSwirl 9 месяцев назад +8

      Oh god I hope this doesn’t become a daily thing, I will have to start up an onlyfans 😅

  • @algobuddy
    @algobuddy 9 месяцев назад +66

    Switching to a VPS with Cloudflare for DOS protection sounds like a smart move to avoid hefty charges. Your step-by-step guide makes it much easier for others to follow suit. Appreciate the insights!

    • @redetermine
      @redetermine 9 месяцев назад

      Chatgpt ahh comment

  • @AnteZivkovic
    @AnteZivkovic 9 месяцев назад +295

    Digital ocean DDOSed you because of your "Why I'd never host my apps on a VPS" video.

    • @WebDevCody
      @WebDevCody  9 месяцев назад +36

      probably 🤣

    • @AndrieMC
      @AndrieMC 9 месяцев назад +6

      isnt aws vps stuf

    • @yassine-sa
      @yassine-sa 9 месяцев назад +2

      Makes sense it's their style

    • @Lostlabs
      @Lostlabs 9 месяцев назад

      Just get a ddos protected VPS from OVH, Path you can find providers easily. (Ex. Vibegames path) Which will basically make the server not be able to be hit on L4 and also better specs then Digital Ocean.

    • @3ventic
      @3ventic 9 месяцев назад

      @@AndrieMC if you use AWS for VPS (ec2 as they call it) alone, you probably shouldn't be using AWS.

  • @dr.lazysloth3415
    @dr.lazysloth3415 9 месяцев назад +51

    I don't know why anyone would waste time DDOSing your system. You're just a nice guy posting fun educational videos. I am probably to lazy to come up with a reason.

    • @WebDevCody
      @WebDevCody  9 месяцев назад +21

      sometimes a DDoS attack is just random; someone finds an open machine after scanning ip addresses and attacks it; but yes this seems targeted 🤣

    • @dr.lazysloth3415
      @dr.lazysloth3415 9 месяцев назад +2

      @@WebDevCodyye maybe it's just random but it feels targeted from your point of view. It does increase the potential revenue of amazon or cloudflare which might benefit the attacker. Don't know if you can just change the IP..

    • @rahultech77
      @rahultech77 9 месяцев назад +22

      Dude I feel the attacker wants to DDos protect their app, so wants a tutorial from Cody for it 😂

    • @dr.lazysloth3415
      @dr.lazysloth3415 9 месяцев назад

      @@rahultech77 that’s probably it 😆

    • @JamesJGoodwin
      @JamesJGoodwin 9 месяцев назад

      Hackers and script kiddes (especially) loves attention

  • @markshinkai598
    @markshinkai598 9 месяцев назад +17

    This is starting to be a series, But this content is very real and educational

  • @rodjenihm
    @rodjenihm 9 месяцев назад +139

    Next step: hosting everything on Raspberry PI 5 in your room.

    • @WebDevCody
      @WebDevCody  9 месяцев назад +16

      Let’s go!

    • @PASTRAMIKick
      @PASTRAMIKick 9 месяцев назад +2

      unironically yeah

    • @tanko.reactions176
      @tanko.reactions176 3 месяца назад

      you really only need to pay for a domain name.

    • @rodjenihm
      @rodjenihm 3 месяца назад

      @@tanko.reactions176 And static IP address.

    • @BhargavSushant
      @BhargavSushant 3 месяца назад

      Self hosting is the way

  • @Kay8B
    @Kay8B 9 месяцев назад +60

    If its just for side projects, its a lot easier having your service go down and just rebooting it all back up rather than paying a hefty bill. Cloud is strictly for high traffic businesses in my opinion. Plus you learn so much more setting up your own VPS and securing it yourself.

    • @rand0mtv660
      @rand0mtv660 9 месяцев назад +5

      True. I think it's great knowing how to run a node/go/whatever app and setup nginx or caddy to proxy to it. You realize how much you can do and what problems those managed services actually solve for you.
      Also in some enterprise cases you cannot just deploy to whatever cloud service and must deploy on premises or are potentially only allowed into VMs so having this knowledge is beneficial.

  • @JonnyJKF
    @JonnyJKF 9 месяцев назад +20

    If you are using a VPS you should set it up to reject all connections except HTTPS coming specifically from Cloudflare's IP ranges (and ssh traffic if you don't have another console available).

    • @WebDevCody
      @WebDevCody  9 месяцев назад +5

      thanks for the suggestion, I ended up adding that today as well

  • @lifewithyousof
    @lifewithyousof 9 месяцев назад +7

    This is wild, thank you for sharing these videos with us. Happy to see you got things resolved!

  • @codehighlights
    @codehighlights 8 месяцев назад +3

    Love how he learned and changed totally the argue that we should host everything on managed services like cloudfront, vercel, netlify etc instead of doing custom VPS setups. :)

    • @WebDevCody
      @WebDevCody  8 месяцев назад +6

      😆 a $1,500 bill created in a few hours will do that to a dev

  • @DaviMartins99
    @DaviMartins99 9 месяцев назад +1

    VPS, Caddy, Digital Ocean, docker-compose...
    Let's go, Cody! This is the way!

  • @stevanfreeborn
    @stevanfreeborn 9 месяцев назад +3

    Thanks for sharing how you are working through this situation. I'm though really sorry about the AWS charges. That just sucks. I'm hoping their understanding and helpful about a credit or refund.

  • @xemronn2303
    @xemronn2303 9 месяцев назад +3

    Great content, your DDOS protection series are basically showing a process how human being is learning from it's own mistakes :D Hopefully it will save some money for others too!
    One tip from me, you can move this push-image script to a github action, that will build and push image to ECR automatically on every push to master(or only when you manually trigger it). This way you will have kind of automated CD pipeline for your project. GH actions are also free up to 2k run minutes per month making it a decent solution for hobby projects

  • @jose6183
    @jose6183 9 месяцев назад +6

    Thank you for sharing this! These couple of videos have been really useful. Great content

  • @neociber24
    @neociber24 9 месяцев назад +14

    I had some hobby projects on AWS, and is scary that any error or DDOS can give you a 2000$ bill.
    Paying 5$ dollar a month for a VPS for projects that make no money is better than being worry about that.

  • @parkerrex
    @parkerrex 3 месяца назад

    This is a great video - got VPS red pilled by Levels' on the Lex show. Thanks for uploading!

  • @SeibertSwirl
    @SeibertSwirl 9 месяцев назад +10

    Love ya! ❤ you’re doing a great job

  • @SalvaToroTorus
    @SalvaToroTorus 9 месяцев назад +2

    Nice to follow your journey. Thanks for sharing.

  • @xyssxy
    @xyssxy 9 месяцев назад +16

    You definitely want to make sure to block all incoming traffic on port 443 and 80 except for cloudflare ips in a firewall like ufw on the backend server. If you dont do that, crawlers will be able to resolve your domain to your backend ip, leaking the ip, bypassing any cloudflare protection.

    • @groff8657
      @groff8657 9 месяцев назад

      If you proxy to your website using CloudFlare DNS, how do you know those IPs? Are they listed somewhere, is there documentation that lists all those IPs?

    • @xyssxy
      @xyssxy 9 месяцев назад

      @@groff8657 There are websites & tools to scan pretty much the entire web, if you render your pages on ips too, or have any correlations to your domain, they will be able to link the ip back to the domain

    • @twitchizle
      @twitchizle 9 месяцев назад

      ​@@groff8657there are 255^4 ips in the world. Its not so hard to crawl all of em

    • @xyssxy
      @xyssxy 9 месяцев назад

      @@groff8657 Yes there is, just type cloudflare ips in any search engine

    • @Lucas-qr7ul
      @Lucas-qr7ul 8 месяцев назад

      @@groff8657 It's in cloudflare docs. You can google and you'll find it.

  • @OetziOfficial
    @OetziOfficial 9 месяцев назад +2

    Can't wait for SST ion to have all of this ready :) I don't want to use docker stuff, that hustle annoys me a lot. Way to much effort.
    Preferably with SolidStart (and Protection enabled)

  • @darrenhinde2971
    @darrenhinde2971 9 месяцев назад +1

    Thank you for sharing all these videos, been insightful especially as I am looking to move from Vercel to AWS and some of these issues I never thought of.

  • @hypnaudiostream3574
    @hypnaudiostream3574 2 месяца назад

    I watched your video about why you shouldn’t use a VPS from a year ago. I’m glad you came around 😂

  • @baetraki7268
    @baetraki7268 3 месяца назад

    You've came a long way from 9 month ago, was mad at you at the time but i see you have found the way my child.

  • @alvinolavarrieta
    @alvinolavarrieta 3 месяца назад

    the complexity 🤯

  • @siya.abc123
    @siya.abc123 9 месяцев назад +9

    There we go!
    Lol I remember you yelling us to 'watch our dev ops privilege' or something like that when we called these cloud services out. You were junior and a cloud fanboy, I think this was last year 😂
    It's really interesting to watch you grow man

    • @SeibertSwirl
      @SeibertSwirl 9 месяцев назад

      lol you’re probably part of the crew doing it huh?

    • @lukasberk9303
      @lukasberk9303 9 месяцев назад

      Next video "Why should you should host simple projects on a VPS instead of AWS" ...............

    • @SeibertSwirl
      @SeibertSwirl 9 месяцев назад

      @@lukasberk9303 at least you’re all learning together? 🥴 lol unless yall are just here to stare at his face for minutes on end which I guess is cool too 🫠

    • @WebDevCody
      @WebDevCody  9 месяцев назад +12

      all it took was a DDoS attack and an AWS linked to my credit card to change my thought process 🫠

    • @oSpam
      @oSpam 9 месяцев назад

      @@WebDevCodyto be fair you could have (and still can) contact aws support. They would give credit to cover the full cost and help you protect in the future most likely. You also can get $1000-100000 based on being a startup, that could also help. It’s a shame you decided to fully make up your mind so soon.

  • @complikatd
    @complikatd 9 месяцев назад

    Thanks for sharing these situations with the rest of us. Helps everyone!

  • @Dom-zy1qy
    @Dom-zy1qy 9 месяцев назад +6

    But why would someone DDOS you ?? You're the chillest dude on web dev yt

    • @WebDevCody
      @WebDevCody  9 месяцев назад +14

      Because there is a lot of room in hell and someone is reserving their slot

    • @real23lions
      @real23lions 9 месяцев назад

      @@WebDevCodyI’m stealing this answer 😂

  • @avinashjha7848
    @avinashjha7848 Месяц назад

    Thankyou for giving us this precious information

  • @gadgetboyplaysmc
    @gadgetboyplaysmc 9 месяцев назад

    THANKS CODY I LOVE YOU. I'm actually dogshit at Docker. Always have setup my garbage apps just manually. Always have just used Docker for spinning up DBs, not for containerizing the whole deployment. This was interesting. More Docker vids would be cool!

    • @gadgetboyplaysmc
      @gadgetboyplaysmc 9 месяцев назад

      Can you also do a vid setting up coolify on a VPS next? Everyone's been going wild with it.

  • @namtrg
    @namtrg 9 месяцев назад +1

    Hi, thanks for what u've done so far. Yours is probably top youtube channel out there.
    I have some questions if u don't mind:
    - Take example you are using docker-compose to serve traffic & app. What if u need to horizontal scale. What kind of infra u'll choose in this case? K8s or sth?, or maybe docker-swarm I guess?
    - What is different between nginx and caddle u r using, what is the pros/cons of it

    • @WebDevCody
      @WebDevCody  9 месяцев назад

      Idk I plan to just scale up vertically as much as possible and see how far it’ll take me. Caddy seems simplier, nginx is probably feature rich

  • @HeRvAsH93
    @HeRvAsH93 4 месяца назад +1

    Is if feasible to set up cloudflare ddos protection in front of an aws app to combine the serverless benefits with the protection?

  • @teamvashmmo3218
    @teamvashmmo3218 9 месяцев назад +1

    Great vid!! I wonder if this would help too: SST is moving to Ion apparently next week and making it so you can setup cloudflare as well as AWS resources, so you can mix and match cloud providers in your infrastructure as code. Would love to see you do the move to Ion and deploy your next.js site to cloudflare

  • @mhmt4603
    @mhmt4603 9 месяцев назад

    As bad as it may sound now, I think it's good that you got ddos'd. That's how you and we learn. Thank you for your amazing content. And too bad for the 700$.

  • @ismailzahhar
    @ismailzahhar 9 месяцев назад

    GREAT technical video, looking to see more content in your channel on Deployment solutions and options. Great work man

  • @patolorde
    @patolorde 9 месяцев назад +1

    Great video, i will try to replicate this setup. I dont want to go homeless

  • @treksis
    @treksis 9 месяцев назад

    Thank you for sharing rare experience to the public.

  • @brunocascio
    @brunocascio 9 месяцев назад +1

    You can configure a cloudflare tunnel which runs on your droplet, and avoid configuring ssl in both places but also you can avoid exposing your droplet

    • @WebDevCody
      @WebDevCody  9 месяцев назад +1

      I’ll check that out, sounds easier

  • @ShootingUtah
    @ShootingUtah 9 месяцев назад +5

    Maybe I'm just too new to the web dev world but this seems entirely convoluted! Just to stop a DDOS you have to apparently run and use like 8 build tools and different services and providers?!? What the hell has the Internet become?

  • @yoJuicy
    @yoJuicy 9 месяцев назад +2

    Such good content. this could be a 5 hour paid tutorial with a next.js/VPS hosting stack. sst, docker compose, caddy, TLS, cloudflare etc.
    would love to know the performance loss with cloudflare in front.

  • @afailable
    @afailable 9 месяцев назад

    These videos are so helpful. Thanks so much man

  • @imam4521
    @imam4521 9 месяцев назад +1

    I hope you make a detailed video on how to deploy next.js on VPS windows server .

  • @wavyboyjodii
    @wavyboyjodii 9 месяцев назад

    "if not good luck" says a whole lot LOL. but thanks this is valuable.

  • @omega_sine
    @omega_sine 9 месяцев назад +1

    I always knew vps hosting was the right way 😎

  • @joeyywill1234
    @joeyywill1234 9 месяцев назад

    Cheers for the insight my duuuude

  • @3ventic
    @3ventic 9 месяцев назад

    You don't need to use Cloudflare's origin cert if you already have a valid cert. I also use Caddy and just let it do its default Let's Encrypt or ZeroSSL behind Cloudflare, reducing the amount of manual setup and configuration needed. The origin cert or another trusted cert is what you need for the "Full (strict)" option instead of just "Full".

  • @oneguyyyy
    @oneguyyyy 9 месяцев назад

    Thanks for sharing this with us!

  • @armantgold
    @armantgold 5 месяцев назад +1

    Coolify or dokploy seem viable alternatives to deploying on vps?

    • @WebDevCody
      @WebDevCody  5 месяцев назад

      yeah both of those are good

  • @franinja080
    @franinja080 9 месяцев назад +1

    Extremely useful video, cheers

  • @jitxhere
    @jitxhere 9 месяцев назад

    Cody at 6:28 if you're using Cloudflare generated cert then you can safely turn on the full (strict) option in SSL

    • @WebDevCody
      @WebDevCody  9 месяцев назад

      awesome, I'll turn that on

    • @EIsenah
      @EIsenah 9 месяцев назад

      Are the certs free to generate? I'm currently using Let's Encrypt cert on my VPS and thinking of adding cloudflare for extra protection.

    • @jitxhere
      @jitxhere 9 месяцев назад

      yes those are absolutely free and even you can select the term like 3months, 1years or even 15 years@@EIsenah

  • @shanesreal
    @shanesreal 9 месяцев назад +1

    You could also integrate cloudflare with aws loadbalancer, unless they attack you with cloudflare bypass; then maybe you still get charged.

  • @mettle_x
    @mettle_x 9 месяцев назад +1

    Nice walkthrough. If you still get into the same issue, perform those extra dance I posted in your last video. Good luck!

    • @WebDevCody
      @WebDevCody  9 месяцев назад

      could you explain why AAAA would help out? if it's behind cloudflare, why would it make any difference?

    • @mettle_x
      @mettle_x 9 месяцев назад

      @@WebDevCody Most of the internet still use IPv4 so most of the devices participating in a DDoS attack are presssmably using IPv4. If your VPS blocks IPv4 altogether, there will be one way to ping your server - that is through Cloudflare. Now someone can scan the ports of AWS to find the servers that have port 80/433 open and send an HTTP request to your server. However, if you don't use catch all block in Caddyfile: it sends something like 422 to deny requests. That's good but still it receives the HTTP request. Setting up IPv6 with AAAA record will future-proof your server as well. Also, users with IPv6 enjoy faster performance.

    • @mettle_x
      @mettle_x 9 месяцев назад +1

      @@WebDevCody I wrote a long reply but it's not showing up here. Joining your Discord if we can have chat there.

  • @appel-32
    @appel-32 9 месяцев назад +1

    yesterday we were talking in your discord about this issue, it's good you bring this type of content but at the same time is bad, there's a lot of people looking for "targets" and this type of videos bring a lot of attention.

  • @ChrisAthanas
    @ChrisAthanas 9 месяцев назад +1

    This is quality content

  • @WittCode
    @WittCode 9 месяцев назад +1

    I've always used a VPS for personal projects for this very reason! Companies I worked for all use AWS and the bills in dev environments alone put me off of using it...

  • @fullstack_journey
    @fullstack_journey 9 месяцев назад +1

    me looking at your bill: I'd be back to eating instant ramen for meals if that happens to me

  • @Kimitri
    @Kimitri 9 месяцев назад

    I never search for cyber security so much like in the last night haha, I guess I learned your lesson too

  • @SeanCassiere
    @SeanCassiere 9 месяцев назад

    I don't remember the steps, but you can set your VPS to not accept connections that are not on the internal network and not from Cloudflare. Just remember to allow ssh over a custom port.

    • @WebDevCody
      @WebDevCody  9 месяцев назад +1

      I did that today, I setup a DO firewall rule and only allow inbound requests from cloudflare specific IP addresses.

  • @mountainash
    @mountainash 5 месяцев назад

    A much easier way is to use Digital Ocean Apps pull your Docker Image from AWS ECR - it's web UI is very easy to setup, and the HTTPS certs are all automatically done for you (no need for Caddy and custom CF Origin TLS certs).

  • @thehibbi
    @thehibbi 9 месяцев назад

    I feel bad for you that somebody out there is eager enough to DDOS you. But this video was very helpful, thanks!

  • @royalepros669
    @royalepros669 9 месяцев назад +1

    Not sure if this is a stupid question, the bulk of the AWS bill comes from Cloudfront HTTP requests.
    Can you just change from using cloudfront as CDN to cloudflare? Instead of moving out of AWS completely?

    • @WebDevCody
      @WebDevCody  9 месяцев назад +1

      cloudfront has a bunch of path rules that know how to invoke lambdas on requests. It wouldn't be an easy refactor

  • @kamleshpaul414
    @kamleshpaul414 8 месяцев назад

    can we use github repository to store docker image

  • @fionnbracken
    @fionnbracken 9 месяцев назад

    Do you have to scp the certs to your vps everytime they expire or is there a way to automate that?

  • @DJohn001
    @DJohn001 9 месяцев назад

    It would be fun if you could got a AWS engineer who helps you to secure you instances and let you make an interview about it to educate people who like us who are watching your channel. I mean it would also benefit them because your and other people with small side projects are more onto their products.

  • @jbzsfq
    @jbzsfq 8 месяцев назад

    Could also host your own docker registry on the vps to store image?

    • @WebDevCody
      @WebDevCody  8 месяцев назад

      I’ve never done that actually; but I’m sure it’s possible

  • @gavinlindridge
    @gavinlindridge 9 месяцев назад

    Really awesome to see how youve done it.
    Interested to know why you didnt go down the using of apps in digitalocean, you can literally just throw a docker container into it so you never need to ssh in etc.
    Though i definitely see some pros and cons to both approaches

    • @WebDevCody
      @WebDevCody  9 месяцев назад

      Because I like wasting time 😂

  • @NaourassDerouichi
    @NaourassDerouichi 9 месяцев назад

    Can't wait for the attacker to ddos test the new setup :D

    • @WebDevCody
      @WebDevCody  9 месяцев назад +2

      if he does I'm quitting

    • @Lostlabs
      @Lostlabs 9 месяцев назад

      @@WebDevCodyNo need to worry you are fine now unless you are charged for your AWS servers running in the backend per request you're fine. I would recommend not using AWS at all it's overpriced and trash IMO.

  • @unclesam2941
    @unclesam2941 9 месяцев назад

    DigitalOcean also has a container repository service, any particular reason to keep it on AWS ?

  • @Kaviarasu_NS
    @Kaviarasu_NS 9 месяцев назад

    While I have some hands on experience with dockerizing our apps, I’m new to other stuffs discussed. Can you please make a short video on how to have this set up from scratch to deployment ❤

  • @analogsensor
    @analogsensor 9 месяцев назад +1

    Thanks for the video, that was very helpful, but I have a few questions, first is why are you using AWS for docker containers?
    Can I just put my container straight to the DigitalOcean?
    Second, is there some throwbacks for deploying nextjs to somewhere else instead of Vercel? And maybe there is some frameworks, that are more "deploy where you want" friendly? And I'm mostly talking about Nextjs as full-stack? Or do I need to split my backend and front end as different applications?
    P.S. I'm just starting to learn more about other frameworks and I'm considering switching from Nextjs (cause I'm stuck at Vercel)

    • @WebDevCody
      @WebDevCody  9 месяцев назад +1

      You can deploy next anywhere. It should have the same feature except edge computing. I was nit deploying containers on aws; I was using serverless

  • @EliasJackson
    @EliasJackson 9 месяцев назад

    Does cloudflare also have free DDoS protection for static websites and serverless functions that they host?

  • @Lyric-w1r
    @Lyric-w1r 9 месяцев назад

    when to use next js instead of react?

  • @reactdevops
    @reactdevops Месяц назад

    Is bad solution to just use cheap vps with some proxy server like nginx and setup nginx for ddos protection?

  • @igortalic2021
    @igortalic2021 7 месяцев назад

    Hey one question, why did you choose to move to digital ocean, was it an option to just add cloudflare in front of aws setup? Tnx, great video like always! 😊

    • @WebDevCody
      @WebDevCody  7 месяцев назад +1

      Since this video I’m actually using railway now. Honestly I just wanted a service that has automatic billing limits which will kill my services if I spend too much money. Not many services provide this. Some have primitives I could use to build a kill switch from scratch, but I don’t have time to waste on that

    • @igortalic2021
      @igortalic2021 7 месяцев назад

      Tnx for the answer, yeah I guess kill switch is a great feature! Didn't use railway will look into it 😊

  • @anonymoussloth6687
    @anonymoussloth6687 9 месяцев назад

    I am a bit new to tgese concepts. Can you explain why you shifted to a vps? Couldn't you have connected cloudflare to your cloud formation distribution?

  • @zivtamary
    @zivtamary 8 месяцев назад

    how do you handle ci/cd when you push to one of those repo's?

    • @WebDevCody
      @WebDevCody  8 месяцев назад +1

      I’d probably build the image in GitHub actions, publish it to a container registry, then ssh into the machine and rerun docker compose up

  • @karanjeswani306
    @karanjeswani306 9 месяцев назад

    Thank you for the great content as always. One question @WebDevCody. Deploying on vercel also doesn't save you from ddos?

    • @Miguelmigs24
      @Miguelmigs24 9 месяцев назад

      They can be nice and forgive you the charge, but it will definitely break your free tier and scale your charges like crazy, a lot more expensive than AWS for sure

  • @SickBeard
    @SickBeard 9 месяцев назад

    6:06 CloudFlare can inspect all of your traffic in plain text.
    (This might be obvious, but I think it's always good to at least point out.)

    • @WebDevCody
      @WebDevCody  9 месяцев назад

      right, I guess you have to trust cloudflare doesn't sell your data or forward it to the NSA 🤣

    • @RemotHuman
      @RemotHuman 9 месяцев назад

      @@WebDevCody I feel like they definitely do forward it to the NSA. We need end to end encryption on our applications starting on the client

  • @reversetcp
    @reversetcp 9 месяцев назад

    good to see people moving back to non-serverless stuff

  • @emsp5558
    @emsp5558 9 месяцев назад +8

    damn feel bad for u

    • @WebDevCody
      @WebDevCody  9 месяцев назад +13

      🤷‍♂️ you live and you learn

  • @rawallon
    @rawallon 9 месяцев назад +1

    That's cool, but it doesn't have ci/cd, correct?

    • @WebDevCody
      @WebDevCody  9 месяцев назад

      Correct, not yet. It’s not hard to ssh into a machine and run a single command to deploy new versions

    • @PASTRAMIKick
      @PASTRAMIKick 9 месяцев назад

      digitalocean does seem to have CLI tools, with that and some other stuff like Ansible you might be able to get a CI/CD going.

    • @RedVelocityTV
      @RedVelocityTV 9 месяцев назад

      Might be overkill but I'm using Gitlab with docker in the same server to build and deploy docker projects.

  • @CodeZakk
    @CodeZakk 9 месяцев назад

    what people gain from making this type of attacks? also if you use vercel the price will be i think 10 times how do you protect if you use vercel. thanks in advance😊😊

  • @can_uysal
    @can_uysal 9 месяцев назад

    Why don't you use cloudflare + aws (sst)? Is there a way for it? I really like sst and aws deployment and would like to use cloudflare in front.. What made you go vps instead of this setup (if exists)

    • @WebDevCody
      @WebDevCody  9 месяцев назад

      Honestly, I’m kind of just tired of serverless and lambda at work we use lambda and I can’t even count how many hours I’ve wasted trying to get binaries to run on lambda ran into lambda size limits, run into API Gateway timeout issues run into having debug permissions over and over again Execution roles having to deal with cold starts that make the application. Just feel slow when you don’t already have a ton of users. Honestly, I think just hosting a single node executable on a VPS or a container runner is extremely low maintenance compared to anything you can hack together in the AWS ecosystem.

  • @fredheladrienkissie1404
    @fredheladrienkissie1404 9 месяцев назад

    With caddy you don't need to specify the `tls` field for having https working, by default caddy will create a tls certificate for you.

    • @WebDevCody
      @WebDevCody  9 месяцев назад

      Right but for some reason I can’t get it working with cloudflare full mode. Maybe I’m doing something wrong

    • @fredheladrienkissie1404
      @fredheladrienkissie1404 9 месяцев назад

      @@WebDevCodyAll of my websites use cloudflare full mode and caddy haven't had an issue yet... so idk

    • @WebDevCody
      @WebDevCody  9 месяцев назад

      @@fredheladrienkissie1404 hmm I’ll look into this more soon

  • @georgemwaniki
    @georgemwaniki 9 месяцев назад

    Am a frontend developer and would love to transition to fullstack and master these deploment stuff, do you have a course on this or one you recommend ?

  • @Jack-kf1tn
    @Jack-kf1tn 9 месяцев назад

    does it not make sense to just use cloudflare with your aws project. Or is it necessary to use a vps to prevent the DOS attack?

    • @WebDevCody
      @WebDevCody  9 месяцев назад

      I'm sure it's possible, but I'm a bit tired of serverless

  • @parlor3115
    @parlor3115 9 месяцев назад

    I thought you said we should avoid hosting on raw servers as much as possible. What makes this project a plausible use case for VPS hosting?

  • @bhavyajain638
    @bhavyajain638 9 месяцев назад

    Why did you use a custom TLS cert with caddy when configured caddy to do it automatically?

    • @WebDevCody
      @WebDevCody  9 месяцев назад +1

      You have to use the cloudflare cert or else you have to do a bunch of extra work

  • @TecsoSolutions
    @TecsoSolutions 9 месяцев назад

    Weren't you using Amazon Shield Standard with Cloudfront? It appears to be free and protect against DDOS.

    • @WebDevCody
      @WebDevCody  9 месяцев назад

      yeah, but it obviously isn't blocking all the DDOS traffic

  • @codingbythemoon
    @codingbythemoon 9 месяцев назад

    Sorry to hear about AWS bill. But did you not have cloudflare setup already in front of AWS? Because you mention WAF. Did it not work properly?

    • @teamvashmmo3218
      @teamvashmmo3218 9 месяцев назад

      He had cloudfront, which is AWS's CDN

  • @ComfyCosi
    @ComfyCosi 9 месяцев назад

    so does cloudflare not work with lambdas?

  • @leguizbsit3162
    @leguizbsit3162 9 месяцев назад

    How can you know that thing. How can you understand that what should i need to know so i can get it. Read the docs?

    • @WebDevCody
      @WebDevCody  9 месяцев назад

      I have no clue what you just asked

    • @leguizbsit3162
      @leguizbsit3162 9 месяцев назад

      @@WebDevCody I'm just amaze how can you learned that. Like choosing where to host and use other tech to secure your application

  • @tobiiias1793
    @tobiiias1793 9 месяцев назад +1

    next: setup traefik on the VPS instead of caddy (Labels in composefile set up the config for Reverse Proxy)

  • @emmanuelU17
    @emmanuelU17 9 месяцев назад

    Out of curiosity, can’t you achieve the same thing with aws api gateway and EC2?

    • @WebDevCody
      @WebDevCody  9 месяцев назад +1

      Same thing, meaning ddos protection or hosting your api?

    • @emmanuelU17
      @emmanuelU17 9 месяцев назад

      @@WebDevCody Actually I just thought about it, api gateway, EC2 wouldn’t work against ddos protection but will work with API hosting.

  • @ewwitsantonio
    @ewwitsantonio 9 месяцев назад

    Much appreciated!!

  • @cloudeater9571
    @cloudeater9571 9 месяцев назад

    Doesn’t DO offer DDOS protection, or is that not available for their droplets/whatever you used for the VPS? Naturally any and all protection sounds good lol

  • @tljstewart
    @tljstewart 9 месяцев назад

    nice stuff, why not use aws vps with cloudflare?

    • @WebDevCody
      @WebDevCody  9 месяцев назад

      Because if I want a vps, DO or railway has a much better ui for cheapee

  • @Kumest183
    @Kumest183 9 месяцев назад

    Hey, great videos! Learned a lot. I have a question: if you host it on the VPS, would you still get a higher bill if you get DDoSed without Cloudflare? Or do you only pay for the instance and it would just get laggy or go down?

    • @WebDevCody
      @WebDevCody  9 месяцев назад +1

      your instance would crash; therefore, there is no extra bandwidth you'd get charged for. It's just a trade off, would you rather have 100% uptime (you probably want serverless), or reduce your chance of getting a $600 in one hour.

  • @internetexplorer7880
    @internetexplorer7880 9 месяцев назад

    Ah that would definitely hurt my wallet too. I was planning to use vercel and use cloudflare over it. Any chance you can make a tutorial for this?

  • @claudeb.3473
    @claudeb.3473 9 месяцев назад

    Just curious, why didn’t you deploy this NextJS app on Vercel’s free tier?

    • @JustPlayerDE
      @JustPlayerDE 9 месяцев назад

      that is the same issue as AWS, just at least 5 times more expensive (free tier is a auto-upgrade if you hit the limits, you still owe money even if no card is linked)

    • @WebDevCody
      @WebDevCody  9 месяцев назад +2

      Vercel free tier license states it can’t be used for commercial apps; my app getting ddos is making money

  • @ochirdarmaev8089
    @ochirdarmaev8089 9 месяцев назад

    why not to use AWS Shield?

    • @WebDevCody
      @WebDevCody  9 месяцев назад +1

      It’s $3,000

    • @ochirdarmaev8089
      @ochirdarmaev8089 9 месяцев назад

      @@WebDevCody
      AWS Shield advanced costs 3000 $ /month
      AWS Shield Standard (free) with AWS WAF ($14 for 10 million requests/month. Keep your application secure from the most common web threats and security vulnerabilities using AWS WAF. Blocked requests are stopped before they reach your web servers.) total $14 for 10 million requests/month
      I wonder to use AWS Shield Standard for my startup, but I don't have any users yet)

    • @ochirdarmaev8089
      @ochirdarmaev8089 9 месяцев назад

      @@WebDevCody Looks like your had to enable WAF rule "Core protections" instead of "rate limit"
      What do you think?