Live data from Hacker News

Show HN: Scar – Static websites with HTTPS, a global CDN, and custom domains

github.com

41–50 of 171 posts

Re: Show HN: Scar – Static websites with HTTPS, a global CDN, and custom domains

#41
post #6

GitHub pages [0] gives you static sites with HTTPS and a custom domain without nearly as much complexity as this if you're looking for an alternative to Netlify. [0] https://pages.github.com/

I feel like Netlify has set the standard in this area now so I'm curious to learn what's different when I see these projects mentioned here.

in the case of scar you get to maintain your own AWS infrastructure. Which isn't really the goal of most people wanting a quick static site.

Re: Show HN: Scar – Static websites with HTTPS, a global CDN, and custom domains

#42
post #2

This is cool, I'm glad somebody built this! I love netlify but I worry about vendor lock-in.

Why do you worry about vendor lock-in with netlify? They host static sites, so you are free to go anywhere. Unless you happen to be using their other services which this doesn't address anyway.

This is my concern in a nutshell, unless someone has a tool that spits out a properly formatted .htaccess so I can migrate my HTTP headers and redirect rules.

Netlify's playground is easy to use for setting this up, but I'd also like to have this available in a standard format - just as an escape hatch in case I need it.

https://www.htaccessredirect.net is there, but I'm thinking even less configuration if that's possible.

Re: Show HN: Scar – Static websites with HTTPS, a global CDN, and custom domains

#43
post #10

Nice project. As an aside, I genuinely wonder under which circumstances a CDN will be useful for a static website nowadays. I have a static website that has been on the HN homepage a few times and got picked up by the Chrome mobile recommendations and a nginx/https with slightly tweaked configuration never had a problem handling the traffic even on the smallest DO droplet. Edit: Thanks for these replies.

What I like about static sites is that you can serve the site in its entirety from a CDN. So you can literally just CNAME www.yoursite.com to yoursite.gitlab.io (or w/e static site host you use). This dramatically cuts down on latency worldwide. It also removes your web server as a single point of failure for short-term outages.

> you can literally just CNAME www.yoursite.com to yoursite.gitlab.io

After so many years I still can't really understand how easily people hand over almost complete control over their site to someone else, just because everyone else does. It's like handing over your e-mail account passwords when LinkedIn started. Yes, CloudFlare, Google and others are helping you, but there is a price to pay that might not be immediately visible.

Re: Show HN: Scar – Static websites with HTTPS, a global CDN, and custom domains

#44
How to host static website with HTTPS, a global CDN and custom domains for free:

1. Setup public repo with Hugo project

2. Add Travis CI integration with GH Pages

3. Use CloudFlare for free SSL + other goodies

Why would anyone need this?

Re: Show HN: Scar – Static websites with HTTPS, a global CDN, and custom domains

#46
Looks very similar to my project https://github.com/kkuchta/scarr from a while back. It even uses the same acronym (I assume that's just a coincidence, since we both just picked a cool-sounding english-language word using the initials from S3, Cloudfront, ACM, and ACM.

At a glance: - Mine handles domain registration + ACM verification automatically - This one wisely uses clioudformation instead of api calls - This one does apex->ww redirects, whereas mine uses the apex and has no redirect

Seems pretty cool!

Re: Show HN: Scar – Static websites with HTTPS, a global CDN, and custom domains

#47
Am I the only one who still hosts my own static sites on a plain old virtual machine?

It's pretty simple to configure nginx for static sites, and by doing it yourself you reduce vendor lockin to just about nil.

Even if S3 is massively cheaper, $5/month for a tiny VM seems like a small price to pay for being vendor-abstract.

I suppose S3 is way less likely to suffer a meaningful outage than my little VM, but how many 9s do my personal websites actually need?

Re: Show HN: Scar – Static websites with HTTPS, a global CDN, and custom domains

#48
I have a two-line Makefile that with one target that sync's my website with an S3 bucket. Deploys are instant. The rest is handled by Cloudflare an AWS. The sheer number of moving parts in this system is outrageous for a static website. A fun project for sure, though.

Re: Show HN: Scar – Static websites with HTTPS, a global CDN, and custom domains

#49
post #47

Am I the only one who still hosts my own static sites on a plain old virtual machine? It's pretty simple to configure nginx for static sites, and by doing it yourself you reduce vendor lockin to just about nil. Even if S3 is massively cheaper, $5/month for a tiny VM seems like a small price to pay for being vendor-abstract. I suppose S3 is way less likely to suffer a meaningful outage than my little VM, but how many…

> you reduce vendor lockin

I don't know why anyone cares about vendor lock in. It's either trivial to move an aws lambda to a google cloud function because you don't have a lot going on, or it's not trivial to move stuff from even your own servers to other servers because it's under huge load and you have considerable amount of data you'd have to migrate under complex conditions.

Moving around is either hard or easy based on things that don't really have anything to do with vendor lock in.

Re: Show HN: Scar – Static websites with HTTPS, a global CDN, and custom domains

#50
post #47

Am I the only one who still hosts my own static sites on a plain old virtual machine? It's pretty simple to configure nginx for static sites, and by doing it yourself you reduce vendor lockin to just about nil. Even if S3 is massively cheaper, $5/month for a tiny VM seems like a small price to pay for being vendor-abstract. I suppose S3 is way less likely to suffer a meaningful outage than my little VM, but how many…

I disagree with encouraging people to do this. You are not accounting for a CDN here, like the post. A website on the HN front page went down yesterday on a $5 VM.

And S3 just holds your HTML files, for super cheap. There’s no lock-in concern there. You can easily migrate to nginx in the future if you really want, but start with S3

Post reply on HN