Live data from Hacker News

Jekyll Static Web Hosting – Deployment Pipeline on AWS

zoph.me

21–30 of 67 posts

Re: Jekyll Static Web Hosting – Deployment Pipeline on AWS

#21

Earlier quoted context omitted.

Standard disclaimer: Cloudflare only secures the communication between the visitor and Cloudflare's network, not between Cloudflare and GitHub Pages when using a custom domain and the 'Flexible SSL' feature Cloudflare provides which you are talking about. So an attacker can still alter/intercept content between GitHub Pages and Cloudflare before it gets to the visitor. To some, the illusion of security might be consi…

I would like to know why GitHub doesn't do something similar to Netlify and GitLab. Surely it can't be that hard if some what smaller companies can already implement this? Also, if using CloudFlare on a static site that collects no form data and only has links to external websites, would it matter so much, or is it just as important to remember about the potential harms?

I'm not sure why GitHub doesn't offer TLS over custom domains. They may have some limimtation in how the Pages system is built that means reworking it to introduce this function might be prohibitively costly at the moment.

The answer to the second question is "I guess it depends".

In one way I think it's more about perception - https should be https and https should be secure. Not https sort of halfway along the connection, then clear and unsecure for the rest over the public internet.

That's what a lot of people have trouble with over Cloudflare's particular popularisation of this 'broken' https model.

Also, all the data hoovered up by NSA et al puts a picture together, maybe about a person, their habits, what sites and content they read etc etc. Thanks to SNI https will likely leak the domain, but other than that it'll secure the rest of the info.

And what if (like I do on my site) I share a PGP key fingerprint? What if that's midified over the insecure portion of the connection? Now any communication by that route might be compromised.

I get that it can be seen as pedantic, but all steps in the connection as a whole need to be secure if https is to remain trusted.

I suppose overall the push is (and should be) towards default encryption and privacy for the visitor. That's something I'd support at least.

Re: Jekyll Static Web Hosting – Deployment Pipeline on AWS

#22
I deploy my websites on my own VPS at DigitalOcean, but with a simpler setup then the TFA.

I simply have a Travis-ci.org setup that does an "rsync" after "jekyll build". And in case I'm not in the mood for waiting on Travis, I simply "rsync" from my localhost after build.

Having an automated build system has advantages though - if you get a PR on your website repository with typos and so on, you just have to merge it and the content will get published, so you can do it over your phone. And yes, I had PRs, since I publish 2 project documentation websites this way.

Also folks, you don't need a CDN or Cloudflare, or any of that — you just need a healthy Nginx setup hosted at a decent VPS provider. I've had my websites withstand Reddit and HN level traffic just fine, paying $5 per month for hosting about 4 static websites, plus other stuff.

I also hate Medium, Blogger, Wordpress and any of that crap, I hate their bloat and trackers and I do think having your own website published in a Git repository is worth it. Yes, there is a cost in maintaining my websites, but I do so willingly, because they are mine.

PS: shameless plug — https://alexn.org

Re: Jekyll Static Web Hosting – Deployment Pipeline on AWS

#23
post #2

After I discovered Netlify, I'm kind of thinking "why bother". It's free, I just push to my repo and they take care of all the building/publishing/hosting/CDNs, and they're very responsive for support and have high availability. I'm a very happy customer (or rather leech, as I don't pay anything).

I've been looking for a paid alternative to Github Pages and this is looking great. Thanks for the tip.

Re: Jekyll Static Web Hosting – Deployment Pipeline on AWS

#24
post #23
post #2

After I discovered Netlify, I'm kind of thinking "why bother". It's free, I just push to my repo and they take care of all the building/publishing/hosting/CDNs, and they're very responsive for support and have high availability. I'm a very happy customer (or rather leech, as I don't pay anything).

I've been looking for a paid alternative to Github Pages and this is looking great. Thanks for the tip.

Yeah, it's pretty good, and they give you free concatenation of assets. Not really necessary with HTTP2, but it's nice that I don't have to bother configuring my site generator with webpack.

Re: Jekyll Static Web Hosting – Deployment Pipeline on AWS

#27

What a nightmare. I'm sure there are use cases for a setup like this, but this is not the system I'd like to maintain. I use Jekyll because of it's simplicity. I edit my site in my favorite text editor and rsync to shared hosting.

Couldn't agree more. I love tinkering around with things and building setups just to learn, but for something like a personal webpage I just want simple.

I use hugo and then setup my output folder (where the generated output goes) as a git repo. Generate the site -> git commit/push -> Caddy. Caddy has a feature to pull in content from a git repo so when you couple that with the built-in Let's Encrypt support it makes it dead simple.

Re: Jekyll Static Web Hosting – Deployment Pipeline on AWS

#28
post #2

After I discovered Netlify, I'm kind of thinking "why bother". It's free, I just push to my repo and they take care of all the building/publishing/hosting/CDNs, and they're very responsive for support and have high availability. I'm a very happy customer (or rather leech, as I don't pay anything).

I had some static sites on Firebase and moved them to Netlify because the build tools were excellent, not to mention built in form handling.

Re: Jekyll Static Web Hosting – Deployment Pipeline on AWS

#29

I deploy my websites on my own VPS at DigitalOcean, but with a simpler setup then the TFA. I simply have a Travis-ci.org setup that does an "rsync" after "jekyll build". And in case I'm not in the mood for waiting on Travis, I simply "rsync" from my localhost after build. Having an automated build system has advantages though - if you get a PR on your website repository with typos and so on, you just have to merge it…

That's pretty much what I ended up doing as well, albeit with my own static site builder scripts. Each time I build my site[1], the deployment script is just a directory rsync. No mess, no fuss.

You are also right about not needing a CDN. My site has occasionally become momentarily popular and my $5 hosting VM hasn't even blinked on my completely static site. A database is a fine thing but you don't want to be serving web pages out of one. Thats why I finally ditched WordPress.

[1] https://sheep.horse/tagcloud.html#computing - a complete waste of your time.

Re: Jekyll Static Web Hosting – Deployment Pipeline on AWS

#30
Love publishing (static) websites with Jekyll. If you're looking for more free (open source) ready-to-use (fork) Jekyll themes may I highlight the Dr Jekyll themes listing / directory [1] - a Jekyll site itself ;-). 200+ themes and counting. [1] https://drjekyllthemes.github.io
Post reply on HN