4
10 Comments

Does anyone have a recommendation for a File CDN?

I have done a few freelancer gigs in the past months, and for some of them I host files on my own servers. It's mostly CSS, JS and image files (so basically static assets).

I want to utilize a CDN, so that the whole traffic is not impacting my (personal) servers. All CDNs I looked at, are "website" CDNs. You tell them a URL of a website, they scan all assets and you have to point a DNS entry at their name server, so that they now serve https://example.com/javascript.js

What I actually want:

  • You tell the CDN, "hey, I want you to serve files for subdomain.cdnUrl.com
  • then I upload some files to the CDN
  • (in the best case, I can even point a DNS entry, so that I can use subdomain.myowndomain.com)

Does anyone of you know of such a service?

  1. 3

    BunnyCDN is the nicest and one of the cheapest solutions to this problem.

  2. 3

    Cloudfront + S3 sounds like exactly what you want.

  3. 3

    AWS S3 + CloudFront will give you exactly that, and in fact, you don't even have to use your own domain name if you don't want to - you'll get an autogenerated CloudFront URL (<some id>.cloudfront.net). Hell, you could even use a "raw" S3 bucket without CloudFront at all, but CloudFront is what will give you regional edge-caching, HTTPS, etc.

    All you have to do is create an S3 bucket, upload your files, and create a CloudFront distribution that points at your bucket.

    Amazon's tutorial shows you the exact steps for getting started with it.

    1. 2

      I am actually using S3 and Cloudfront extensively for other projects. It does its job perfect, but I was looking for something even simpler. Although I have experience with it, it still is too much hassle to setup for just 20 files^^ And as I like to learn something new, I will try out Digital Oceans CDN

  4. 1

    I host my static content on S3 (w/o cloudfront). Make docker containers much smaller with faster biulds and upgrades. And the speed is great too. Not thinking about CDN atm as I feel it's not needed.

  5. 1

    Using BunnyCDN and I love it ! 🐰

  6. 1

    Digital Ocean offers a solid CDN that we've been using for two years now. It's pretty cheap (like $5/month) and offers solid speed and storage. You basically interact with an S3 bucket and digital ocean replicates your public files to their CDN. You an also use custom domains for free.

    1. 1

      I read somewhere there is a max parallel connections limit of ~20. Is it not true?

    2. 1

      this is probably exactly what I was looking for, awesome! Will try it out in the next few days.
      Thanks :)

  7. 2

    This comment was deleted a year ago.

    1. 1

      Long back I spoke to Netlify support regarding this. Their TOS doesn't allow you to use Netlify as a individual file CDN (it is only for websites).

      1. 1

        This comment was deleted a year ago.

Trending on Indie Hackers
Competing with Product Hunt: a month later 33 comments Why do you hate marketing? 29 comments My Top 20 Free Tools That I Use Everyday as an Indie Hacker 18 comments $15k revenues in <4 months as a solopreneur 14 comments Use Your Product 13 comments How I Launched FrontendEase 13 comments