From a47ed68d4552875269e43d6d0acb20bf20d79e12 Mon Sep 17 00:00:00 2001 From: Daniel Morrisey <142274379+therealfuntimeswithdanny@users.noreply.github.com> Date: Sat, 28 Feb 2026 16:17:41 -0500 Subject: [PATCH] updated CDN --- cdn.html | 658 --------------------- cdn/index.html | 1046 +++++++++++++++++++++++++++++++++ js/cdn-v2.js => cdn/script.js | 0 cdn/worker.js | 269 +++++++++ index.html | 2 +- 5 files changed, 1316 insertions(+), 659 deletions(-) delete mode 100644 cdn.html create mode 100644 cdn/index.html rename js/cdn-v2.js => cdn/script.js (100%) create mode 100644 cdn/worker.js diff --git a/cdn.html b/cdn.html deleted file mode 100644 index 03923e3..0000000 --- a/cdn.html +++ /dev/null @@ -1,658 +0,0 @@ - - -
- - -
- The MBD CDN is a network of servers located around the world powered by the Cloudflare global network.
-
- It's designed to deliver media (images, videos, live broadcasts, etc) at extremely fast speeds with 100% uptime.
-
Social Links:
- -A network of servers located around the world powered by the Cloudflare global network — delivering media at extremely fast speeds with 100% uptime.
+Images, GIFs, and videos accepted. Files are served globally via Cloudflare immediately after upload.
+ + + +The MBD CDN is a content delivery network built by madebydanny.uk to host and serve media files — images, GIFs, and videos — at extremely fast speeds with global availability.
+Files uploaded to the CDN are stored in Cloudflare R2 object storage and served from Cloudflare's global edge network, which spans over 310 cities worldwide. This means your media is delivered from a server geographically close to whoever is viewing it — minimising latency and maximising load speed.
+The platform is designed to be simple and permanent. Files are stored indefinitely once uploaded and are immediately available via a public URL.
+From the moment you click Upload to the moment someone loads your file — here's what happens.
+ +Your file is read locally in the browser and sent directly to the CDN API over HTTPS. It goes straight to the Cloudflare edge — no intermediate servers involved.
+A Cloudflare Worker handles the upload at the edge. It assigns a UUID filename, detects the file type, and streams the body directly into R2 object storage — with no cold starts and near-instant response times.
+The file is written to Cloudflare R2 — S3-compatible storage with zero egress fees and 11 nines of durability. Upload metadata is logged to D1 (Cloudflare's edge SQL database) to track stats.
+A permanent public-cdn.madebydanny.uk link is returned instantly. Anyone with it can access the file — served from whichever Cloudflare PoP is closest to them.
Files are cached and served globally — sub-50ms for most users regardless of where they are.
+Zero egress fees, no expiry. Files are stored in Cloudflare R2 with enterprise-grade durability.
+Workers run at the edge with no spin-up delay — every upload and file request is handled immediately.
+Fair-use limits are in place to keep the CDN reliable and available for everyone.
+ ++ Images: JPEG, PNG, WebP, AVIF, SVG + Animated: GIF + Video: MP4, WebM, MOV +
+Guestbook ~ Recently played Music ~ About Me ~ Microblog ~ Photos
+Guestbook ~ Recently played Music ~ About Me ~ Microblog ~ Photos
I like to listen to Music (Mainly Tate McRae and Taylor Swift), and post on Bluesky
I'm also on Threads and Mastodon, but active on Bluesky, becuase it's the best social media platform