News for hackers. Stuff that matters.
Re:My Own Private CDN by giancarlostoro on Friday August 31, 2018 @07:16AM (#17884557)
I wonder how long till shared hosting or some sort of similar cloud hosting takes off more that handles a lot of this nuance for you. CDN's can really reduce a lot of the heavy burdens that a single server will face which is downloading static files. Not familiar enough with all the things offered on the cloud, just with the few tools I've used so anyone who might already be aware can let me know. I know the author mentions Amazon's Route53 but I'm on about an all-inclusive solution like one would find in shared hosting that could include:

* SSL - Free tier would bring Let's Encrypt SSL Certs by default, the end-user shouldn't even think about how it works or anything of the sort, it should just work. * CDN - no need to even think about how it works, ServerlessCDN type of stuff. * Host any kind of app (maybe some sort of serverless approach or docker, though the less you have to mess with even more dev tools the better) * Intuitive admin panel for when SHTF with detailed logging.

I'm surprised we're still stuck in the era of CPANEL and L*MP stacks. Imagine if anyone could install and run Discourse as easily as they do Wordpress, same with Ghost. DigitalOcean comes pretty close in this regard, but maybe something more fool proof for the average joe would be great.

Re:My Own Private CDN by extra88 on Saturday September 01, 2018 @01:36PM (#17892952)
Dreamhost shared hosting includes Let's Encrypt and Cloudflare, click a checkbox to enable them.

https://www.dreamhost.com/hosting/ssl-tls-certificates/

https://www.dreamhost.com/partners/cloudflare/

Re:My Own Private CDN by Ayesh on Saturday September 01, 2018 @01:46AM (#17890454)
One of the most painful things to work on would be clearing caches. I have my own setup that I invalidate the _entire_ set of assets just to make sure the end users do not get stale assets, and I just ++ a build ID and all the URLs are uncached at the edges. Not all sites hosted in shared hosts can do this.
Re:My Own Private CDN by zrail on Saturday September 01, 2018 @02:43AM (#17890608)
My plan for this is to just tell the cache nodes to delete the nginx cache folder entirely via their one-minute check in cycle. Each node will get a flag in the database that says "needs clearing" and when they check in next their update script will include an `rm -rf /nginx/cache/directory/*`. Extremely blunt but also easy and effective.
Re:My Own Private CDN by ohhellno on Friday August 31, 2018 @12:19PM (#17886767)
What you describe sounds like now.sh if you are on a JS-based stack.

Edit: also for just plain static if you use a non-JS generator.