I Set Up MY OWN PERSONAL CDN using AWS S3 and Cloudflare to serve STATIC FILES

Поділитися
Вставка
  • Опубліковано 27 лис 2024

КОМЕНТАРІ • 50

  • @lionking422
    @lionking422 3 роки тому +11

    This video has been a lifesaver!

    • @JoelCodes
      @JoelCodes  3 роки тому +1

      I love hearing that! I'm glad this was useful to you! Makes my day! Cheers 🍻

  • @ovuokeaghwotu2389
    @ovuokeaghwotu2389 3 роки тому +4

    Please can you make a video about mounting the S3 on your local machine. Thank you for this video.

    • @JoelCodes
      @JoelCodes  3 роки тому +1

      It's on my list of videos to make! 👍

    • @YasiruNanayakkara
      @YasiruNanayakkara 3 роки тому

      Joel Can't find that video. can you share a link also

  • @deejaysnake
    @deejaysnake 4 місяці тому

    Thank you very much

  • @mumblic
    @mumblic 3 роки тому +2

    I'm confused because I don't see the CDN part. All I see is cloud storage that is used to serve static files.

    • @svampebob007
      @svampebob007 3 роки тому

      the CDN part is from cloudfaire, basically he set up the server with the static files using Amazone, and used the automatic CND function from cloudfair....
      Definitely not what I was looking for.
      You can make you own CND using nginx.
      This video skipped all the explanation on what is happening back stage.
      Using Cloudfare he also got Geo DNS (meaning cloudfare will handle the tracking automatically and serve what ever they have cached from the nearest server to the client).
      This is hardly a good video to show case a "MY OWN PERSONAL CND"

  • @fhskdfhs64
    @fhskdfhs64 3 роки тому +2

    In the video, the bucket is accessed via SSL, how can this be configured if the bucket works via http by default?

  • @oscarmjv
    @oscarmjv 2 місяці тому

    Super!

  • @kelennihomori8006
    @kelennihomori8006 3 місяці тому

    I would like to make S3 as a picture storage for a website on EC2, instead of the whole website on S3. How do I make that ?

  • @bndissanayaka
    @bndissanayaka 2 роки тому

    this great! really is a lifesaver. thank you very much ☺

  • @bimbim1862
    @bimbim1862 2 роки тому +1

    Can u explain how to buy and eat burger in McD?

    • @JoelCodes
      @JoelCodes  2 роки тому +1

      I probably could. Would you find that useful?

  • @HellThePaje
    @HellThePaje 4 роки тому +2

    Nice Content!
    Have any tips regarding using a s3 bucket to serve as cloudflare repository to streaming videos/audios under hls? Ty!

    • @JoelCodes
      @JoelCodes  4 роки тому +1

      This might be against Cloudflare's TOS. I would recommend using AWS Cloudfront to complete this.
      For Cloudflare, I would limit the request to normal web page files.

  • @GP8086
    @GP8086 3 роки тому +2

    Hi Joel In the video, the bucket is accessed via SSL, how can this be configured if the bucket works via http by default?

    • @GP8086
      @GP8086 2 роки тому +1

      Setting your encryption mode to Flexible makes your site partially secure. Cloudflare allows HTTPS connections between your visitor and Cloudflare, but all connections between Cloudflare and your origin are made through HTTP. As a result, an SSL certificate is not required on your origin.

  • @RohitSharmaYT
    @RohitSharmaYT Рік тому

    how to add bunny cdn with s3

  • @aemericenglish2417
    @aemericenglish2417 3 роки тому +1

    Let say Instagram had bunch of photos to deliever, is it fit using Cloudflare CDN?
    Or Cloudflare have limited bandwith/url/anything?

    • @JoelCodes
      @JoelCodes  3 роки тому

      I am not an expert on their content policy. It depends on how you use it. If it's for "normal web use" then you'll be fine. If you are trying to make your own imgur site and host billions of images, you may not be fine.

  • @yosoyjaff
    @yosoyjaff 6 місяців тому

    Do you have any update for this?

  • @lockdown4826
    @lockdown4826 2 роки тому +1

    Any tips for setting up a cdn that’s serving files for a game like fusionfall?

    • @JoelCodes
      @JoelCodes  2 роки тому

      I am not familiar with fusionfall. If they are static files, then you can use the same method. If they aren't. Then you'll have to follow what fusionfall recommends.

  • @rokuboss
    @rokuboss 2 роки тому +1

    Fucking awesome

  • @ignaciocarvajal1
    @ignaciocarvajal1 3 роки тому +1

    Hi joel, i'm not sure if you could help me. I'm getting error 522 on cloudflare. I did exactly the same as you but my site is not working...

    • @JoelCodes
      @JoelCodes  3 роки тому

      Hit me up on twitter. Share your source code. Maybe it's something simple that was missed.

    • @jgoon3
      @jgoon3 2 роки тому

      getting the same issue, suspecting it has to do with SSL. Did you find a fix?

  • @kayoutube690
    @kayoutube690 2 роки тому

    Is it require to enable the public access of the bucket? Why?

  • @thepickicool97
    @thepickicool97 3 роки тому +1

    It would be cool if it was possible to resize them automatically

    • @JoelCodes
      @JoelCodes  3 роки тому

      You definitely could with some additional code

  • @ajithprakash5874
    @ajithprakash5874 4 роки тому +1

    is any way to add a subdomain (images.mydomain.com) as a new site in cloudflare, right now its only possible to add primary domain (mydomain.com)

    • @JoelCodes
      @JoelCodes  4 роки тому +1

      Because this change is a DNS setting, your domain needs to be in Cloudflare. You can set the DNS of the subdomain to any location you want.

    • @getmeajith
      @getmeajith 4 роки тому +1

      @@JoelCodes do you prefer cloudflare free plan? is any limitation about bandwidth? if we have a 250GB bandwidth per month.

    • @JoelCodes
      @JoelCodes  4 роки тому

      @@getmeajith I don't believe there's a bandwidth limit for cloudflare free plans. You'll have to check their TOS for more info www.cloudflare.com/terms/

  • @VolkovMikhailv01234
    @VolkovMikhailv01234 2 роки тому +1

    That's great, but why bother so much? Pay some dollars for CDN and protection from G-core labs and don't worry about it. There is the simplest management and support that will help in any situation. It costs much cheaper than AWS and Cloudflare.

    • @JoelCodes
      @JoelCodes  2 роки тому

      I went this route because of the low cost

  • @Daniel-qo9uv
    @Daniel-qo9uv 2 роки тому +1

    Cloud font is AWS CDN

    • @JoelCodes
      @JoelCodes  2 роки тому

      For this, I didn't want to use AWS CloudFront because of the cost and difficult setup. So instead I setup Cloudflare to point to my files on S3.

  • @mike6335
    @mike6335 2 роки тому +1

    No "personal CDN" here...

  • @iHariPatel
    @iHariPatel 4 роки тому +3

    Its too easy ,

  • @chris-nx1nk
    @chris-nx1nk 2 роки тому

    This is not YOUR CDN. This is CloudFare's CDN. Bad title.