by 1996 · 8y ago · 0 comments
A static website cached by cloudflare seems very vanilla.
Also, why S3? this seems very easy to do with Linode or anything else similarly cheap or cheaper ($20 gets you a KVM VPS with 2 Gb nowadays)
Unless you have to regenerate constantly, all it needs is nginx, to serve the pages to Cloudflare edges when thry drop out of the cache
Also, why do you need a server at all? If you are doing nothing but serving static files then why incur the overhead of maintaining LetsEncrypt certificates and writing Nginx config files? AWS provides a simple interface in which you can view and manage your static files without having to ssh into a server.
On the point of price, I'm predicting my total cost of hosting for a site serving roughly 40-45k users per month will be roughly $7/month. All whilst minimizing the amount of administration time required and monitoring of a more traditional system.
Hope this clarifies this, would be keen to hear any counter thoughts!
12x24x100= lots of mb per day
S3 costs (if only for the bandwidth) will be greater than a server with a fair share unlimited connection
Also, cloudfront non free plans will kill you - again because of the bandwith.
This is probably an exceptional rate of change for the _vast_ majority of static sites.
I also doubt that many static sites have much "overhead" related to maintaining nginx config files and Let's Encrypt certificates.
My deployment is shell scripts launched by systemd timers
Instead of downvoting, can someone please explain why this setup that is stable is not up to whatever standards?
Anyway, if someone can manage to access my servers with only nginx serving static files, they deserve to 0wn it :-)
Doing anything else than putting cloudflare in front of my nginx is needlessly overhead- because cloudflare scales quite well!