3 ms·
Build your own CDN on a Raspberry Pi
- _def 7y ago"Utilize Cloudflare’s CDN to serve files"
- throwaway9d0291 7y agoThis is a really weird setup and it's not "a CDN on a Raspberry Pi", it's a "CDN with a Raspberry Pi origin". TL;DR: It uses CloudFlare Workers to add cache and CORS headers to cached responses. It's unclear to me why though. Why bother with all this complex setup, code and extra expense? It takes two lines of NGINX configuration to add the headers and CloudFlare's regular service supports the caching headers natively [0] and will proxy through the others you set. [0]: https://support.cloudflare.com/hc/en-us/articles/115003206852-Understanding-Origin-Cache-Control https://support.cloudflare.com/hc/en-us/articles/11500320685...
- captn3m0 7y agoIf you'd like to actually join a CDN with your Pi, check https://commons.host/ https://commons.host/