birdwrongs
.games

Notes on CDN Setup

2025-07-29

Figured I'd write this up since I know some people are migrating their (chonky) games off of traditional storefronts, which means you have to serve the bandwidth yourself. If you have a 500MB file to download, the way this is set up will cover the first 10k downloads for free and then it's like half a cent to maybe 3 cents maximum per download afterward. If you're doing brisker business than that, you can probably afford the bandwidth, ahaha.

(The other advantage to CDNs is that file downloads are a lot faster for most people, since it means they have content served from a geographically closer location. This is ideal for static files that are unlikely to change regularly.)

I use Bunny.net, which has the ability to serve files from nearly every continent and has very few content restrictions. Signing up for an account gets you $20 in free credits, and adding a payment method gets you another $30, for a total of $50 free credits.

All you have to do is set up a "pull zone," aka your website, and have your assets uploaded to that website. Then, prefix all the URLs you want to serve from the CDN with the CDN subdomain you're given. Bunny will automagically download the content to its servers the first time it's requested, and then it's ready to serve with very little technical knowledge involved.

Tags: Website