Does it? Those provide dynamic compute for e.g. SSR, not hosting static sites. The equivalent here is more like S3 + Cloudflare (Cloud Connector and some rules). Which is free for most use cases and (IMO) pretty easy.
Although it's my understanding that GitHub has much tighter content restrictions than the others. So you can't host commercial projects or anything the GitHub org finds 'icky'.
I don't think that's accurate. What's your source?
> GitHub Pages is not intended for or allowed to be used as a free web-hosting service to run your online business, e-commerce site, or any other website that is primarily directed at either facilitating commercial transactions or providing commercial software as a service (SaaS). GitHub Pages sites shouldn't be used for sensitive transactions like sending passwords or credit card numbers.
> In addition, your use of GitHub Pages is subject to the GitHub Terms of Service, including the restrictions on get-rich-quick schemes, sexually obscene content, and violent or threatening content or activity.
Ah, so pro-diversity activism websites are out of the question for GitHub then, if not at the moment then definitely in three years time.
For anyone who might find this interesting, I wanted a static site knowledge base but private: https://chanux.me/blog/post/static-site-with-auth/
I host this with GCP and stay within free tier
And how I deploy a similar thing with GCS/Cloud build etc is covered here https://chanux.me/blog/post/automate-static-site-publishing-...
This seems... incredibly complex when you could just use S3 + Cloudflare.
However, if you have pointer to a better solution, appreciate a link. Always looking to simplify.
(1) upload the files to an S3 bucket (GCS or Cloudflare R2 may also work, haven't tried);
(2) point Cloudflare at the bucket via their Cloud Connector;
(3) turn on Cloudflare Access.I feel that tossing your static files up on a host like NearlyFreeSpeech (or any other cheap/decent host) is the easiest.
This would also only cost you ~$0.03 a day. Don’t reinvent the wheel, you know?
Also, if it's about cost then whatever cloud bucket plus CDN is going to be typically free and will scale to infinity for very cheap. Everyone dreams of a random blog post being on top of HN after all.
I suppose whether that's simpler depends on if you are familiar with the cloud offerings, but many people are through {dayjob}. For me, I'd rather use similar tooling for work and personal projects, so I don't have to think too much about it.
I haven’t yet worked out the best cheap VPS/dedicated provider though, project for next weekend.
I absolutely refuse to actually ship valuable things though so thanks for the suggestion and I'll probably spend some time trying it out.
So I’m still sticking with Route53 cause it’s the least annoying registrar and DNS api, for CDN I’m going with bunny and for dirt cheap object storage I’m going with b2.
Then the fun part is the actual self hosting: I’m going with Garage for my normal self hosted S3 api (b2 is for backups etc.), Scylla for DDB, Spin for super fast Wasm FaaS…
Then this weekend I got deep into trying to build my cloudwatch alternative I think I’m going with dumping logs with vector into b2 and then using quickwit for searching the logs.
Just a fun homelab challenge really.
I am guessing the next step is paying for a bucket that that allows virtualized containers to run an OS? Or having a constantly-up node.js backend to generate server-side HTML? Is this essentially the generic description of self-hosting Wordpress on an own server?
Does integrating a payment processor like Shopify require something more than static hosting?
There is what modern JS world calls 'SSR' (server-side rendering) which is where, yes, you basically have a node server running to generate the HTML that is sent to the browser and that's then 'hydrated' into a client-side app. Doesn't necessarily have to be Node/JS though, other languages have their own frameworks, but JS is probably most common. This setup can then be fronted by a CDN for caching purposes.
That's not really related to the bucket concept though, it just runs on a normal server and serves everything (static and dynamic content), typically.
IMO the benefits of SSR (vs SSG or a pure static-file site) are marginal _unless_ you have a very specific use case. E.g. an ecommerce site where you want all your product pages to have great SEO, but you've got too many products to build them all at once.
Then again if you _only_ need a website (i.e. no API for other clients) then it can be nice to have end-to-end types in that kind of fullstack setup.
> Does integrating a payment processor like Shopify require something more than static hosting?
I don't know about Shopify but for e.g. Stripe you can do a lot on their hosted pages, without your own backend. If you want to automate things though, have user state based on payments, etc you will need a backend and a data store of some kind. But that could be an API that your static site points to.
[0]: https://hydrogen.shopify.dev/
[1]: https://shopify.dev/docs/api/storefront/latest
Specifically: Is it that a whole lot of you are deploying things that require the heavy lifting of a CDN -- or is it that you're just used to the idea of one out of habit?
Brajeshwar•2mo ago
I’ve been looking for an extra-cheap CDN, and I’m not so worried about high uptime. I’m not yet ready to cough up the cost for Cloudflare R2 and AWS CloudFront, though it’s not costly, but I’m still in that cheap-feeling phase and not ready to offload over 100GB of files to the public while paying a price.
I looked at Bunny CDN a while back, but I remember thinking that the minimum was like ~$50. What did I miss? I dismissed it as non-personal option.
portaltonowhere•2mo ago
Brajeshwar•2mo ago
chrismorgan•2mo ago
I hadn’t heard of this, only seen the “14 day free trial” thing, so I checked: the trial gives $20 of credit, and verifying a card gets you $30 more, but it’s all trial credits which expires 14 days after you create your account. In other words, completely useless for people looking to spend under the $1/month minimum.
Pity, free for 2½ years sounded good.
Brajeshwar•2mo ago
KomoD•2mo ago
> but I’m still in that cheap-feeling phase and not ready to offload over 100GB of files to the public while paying a price
You wouldn't pay like anything for that on Cloudflare R2. You get 10GB and $0.015/GB (so what... like a dollar or something?) for anything over + free egress.
miyuru•2mo ago
https://aws.amazon.com/blogs/aws/aws-free-tier-data-transfer...
Brajeshwar•2mo ago
Edit:
I’m sorry but I’m today years old learning that AWS indeed is free-ish, “Data Transfer from AWS Regions to the Internet is now free for up to 100 GB of data per month (up from 1 GB per region).”
“Data Transfer from Amazon CloudFront is now free for up to 1 TB of data per month (up from 50 GB), and is no longer limited to the first 12 months after signup.”
Now, I need to figure out why am I being billed each month for some of the files I use AWS for!
anamexis•2mo ago
hexbin010•2mo ago
https://aws.amazon.com/cloudfront/pricing/
miyuru•2mo ago
https://aws.amazon.com/cloudfront/pricing/pay-as-you-go/
hexbin010•2mo ago
ozim•2mo ago
Wowfunhappy•2mo ago
ozim•2mo ago
blargwill•2mo ago
0x3f•2mo ago
toddmorey•2mo ago
adamhartenz•2mo ago
Brajeshwar•2mo ago
I’m OK with a sub-$10/mo budget, but Amazon Web Services doesn’t offer a way to pay recurring charges with Indian Cards. After this thread, I read up a lot yesterday and realized that Amazon AWS India is now pretty well oiled and working. I might stick to it and pay it off in advance. I’d be more than glad to, say, pay off $100 a year and not think about it.
The cost on AWS, I realize, is the S3 storage. Cloudflare is already fronting the CDN aspects of it.
So, I was looking for something with a sweet spot, say, pay something in the lines of $10 a year, at max about $25 a year, and it just dumps all of my files now and, to an extent, in the long term.
fatchan•2mo ago