Settings

Theme

Free static websites with SSL for hackers

rolodato.com

161 points by rolodato 8 years ago · 35 comments

Reader

fenollp 8 years ago

I use Netlify which has the same qualities and requires less setup/attention. Am not affiliated with them.

  • 18nleung 8 years ago

    Seconded - all you have to do is specify a build command and an output directory and Netlify will build your site on every commit to master. You can easily add a custom domain, manage DNS, and get Let’s Encrypt SSL with the click of a button.

    Not affiliated either, but I’ve been blown away by how seamless their service has been.

    • rprime 8 years ago

      Indeed so, I had quite a bit of code written to handle deployment for 2 simple static websites, all got replaced by netlify in under 10 minutes, mind blown.

    • chkal 8 years ago

      I totally agree. Netlify has everything I need.

  • Hasz 8 years ago

    A second vote for Netlify, it's incredibly easy to use. I'm not monitoring uptime, but have had zero issues so far.

    I use it with Hugo, a static site generator. I believe Netlify has an easy SSL setup option, but it has been a while since I set it up.

    Before, I used NearlyFreeSpeech, which was very low cost but not nearly as streamlined.

  • rolodatoOP 8 years ago

    I was not aware of Netlify, thanks for letting me know. I've added it to the list of alternatives.

transmit101 8 years ago

As it happens, I've got a couple of merge requests open to add HTTPS-only support to GitLab Pages.

If anybody is interested:

Rails: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16273

Go: https://gitlab.com/gitlab-org/gitlab-pages/merge_requests/50

eugenekolo2 8 years ago

I've done similar setups. I highly recommend just using Cloudflare or Netlify instead. Unless you have an actual business reason, or love owning everything in the stack.

The headache of managing this yourself adds up, things break, things update, etc.

superasn 8 years ago

For static sites hosting on AWS S3 is super cheap, plus with Cloudfront CDN in front you can be sure your site is being delivered to the user by a server near him. It's not 100% free but still very cheap for static websites[1]

[1] https://medium.com/@sbuckpesch/setup-aws-s3-static-website-h...

andrewaylett 8 years ago

Another option, similar to some of the top-level comments suggesting Cloudflare with GitHub pages, is to use Cloudflare's long-lived internal origin certificate on GitLab and Cloudflare's public externally-valid certificate for end-users.

Although I have to admit to not actually having set that up yet: it's on my to-do list for a personal site that's in-progress this week.

matthberg 8 years ago

What I did was a more customized version of that, I made a .gitlab-ci.yml file which easily lets you run any scripts of your own to build, with the same end result. Using gulp I had it run in development mode by default with watchers and verbose outputs, yet in the ci file I called a production build that polished everything up. For the front end side, I used pug, sass and babel with a few other js things to make a templating system, which really helped me understand site structures.

up-n-atom 8 years ago

I suppose https://neocities.org/ could qualify for the author's ideal alternative.

JustinAiken 8 years ago

If you do use jekyll and gitlab, I made this jekyll plugin that does it for you (if you'd rather have something in-ecosystem than an npm package) -> https://github.com/JustinAiken/jekyll-gitlab-letsencrypt

neya 8 years ago

As another commenter has mentioned, Netlify is fantastic. It takes care of everything and migration is painless. And the best of all, it's free~

This year, one of my goals is to migrate all my Wordpress blogs to Jekyll and host them on Netlify. I'm almost done with 2/3rds of them and couldn't be happier. Highly recommended.

7ewis 8 years ago

You can use Full SSL on CloudFlare with GitHub Pages, which is end to end.

https://blog.cloudflare.com/secure-and-fast-github-pages-wit...

  • tony101 8 years ago

    End-to-end secure, but only against passive attacks. Cloudflare "Full SSL" (as opposed to "Strict SSL") does not verify the certificate presented by the origin server, so someone sitting between Cloudflare and your origin can still MITM the connection without detection. Strict SSL does not currently work with GitHub Pages, because "*.github.io" certs do not match custom domains.

    https://www.cloudflare.com/ssl/

    https://github.com/isaacs/github/issues/156#issuecomment-110...

    • prdonahue 8 years ago

      We're working on making Strict mode work better in such situations.

      For example, if the origin server presents a certificate with a SAN for *.github.io and you have a CNAME to yourusername.github.io, this will (soon) validate as Strict.

      • tony101 8 years ago

        That's great news! I've been hoping Cloudflare would allow customized cert validation (i.e. the user specifies a domain name to verify against, in the control panel). At least the improvement you mention will increase compatibility with GitHub Pages and others.

      • Santosh83 8 years ago

        Wow this is great news! As someone who finds GitHub Pages with Cloudflare nearly perfect for my simple site, this change would make it even more so!

  • rolodatoOP 8 years ago

    It is end to end but CloudFlare does not verify the identity of the origin server. The only equivalent option would be "Full SSL (Strict)", which is not free.

paule89 8 years ago

If i read free i mean free as in everything, but it seems you already need to have your own custom domain name. Meaning your own domain. Or did i miss something?

q3k 8 years ago

Please don't teach people how to centralize the web around a service that isn't even supposed to be used for personal web pages [1].

[1] - "We offer Pages sites primarily as a showcase for personal and organizational projects." https://help.github.com/articles/github-corporate-terms-of-s...

  • r3bl 8 years ago

    If that was the case, there wouldn't be homepages (USER.github.io).

    Projects reside on USER.github.io/PROJECT, so they assume you will create a homepage as well. If you're a user, that's your personal homepage.

    Anyway, this is about GitLab.

  • yeukhon 8 years ago

    You quoted it: "primarily", which means GitHub (in this case) does not prohibit users from using Page in the way you seem to disagree with. What you choose to do with Page, a blog, or a personal static website, is at the mercy and the discretion of the service provider. You just can't advertise products using Page.

    You can call your project "my 365 days of kernel hacking series", put the code on Github, and then host a blog on GitHub with a mix of hacking blog posts and other non-hacking blog posts. That's acceptable.

  • ReverseCold 8 years ago

    He is explaining how to do this with GitLab Pages, not GitHub Pages (the ToS you linked to).

    Other than that, yes, GitLab pages exists for the same reason.

    • unethical_ban 8 years ago

      Furthermore, one can host Gitlab on their own. There is nothing wrong morally or otherwise with using a document revision service and build platform to push static sites.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection