Live data from Hacker News

Ask HN: Do you blog under your own domain? How?

news.ycombinator.com

11–20 of 40 posts

Re: Ask HN: Do you blog under your own domain? How?

#11
That’s a great question!

How: github pages. How, you ask? I don’t know. I set it up once, and now when I log in to github it tells me I set it up wrong and I should set it up again correct. I don’t know what I did or how to do it correctly - but visiting my domain works, so I don’t dare to fix what isn’t really broken.

So I guess you don’t need to know what you’re doing to host a static site on your own domain :)

Re: Ask HN: Do you blog under your own domain? How?

#13

That’s a great question! How: github pages. How, you ask? I don’t know. I set it up once, and now when I log in to github it tells me I set it up wrong and I should set it up again correct. I don’t know what I did or how to do it correctly - but visiting my domain works, so I don’t dare to fix what isn’t really broken. So I guess you don’t need to know what you’re doing to host a static site on your own domain :)

https://help.github.com/en/github/working-with-github-pages/...

Short is create a CNAME file in your site repo with your custom DNS in it, then add a CNAME in your DNS pointing to the GitHub pages DNS.

Re: Ask HN: Do you blog under your own domain? How?

#14
Build+host: Netlify

Version control: GitHub

Editing: Netlify CMS or nano+git

I started setting this up from scratch using Gatsby, but then realized it would be much better and also easier to use this starter:

https://www.gatsbyjs.org/starters/alxshelepenok/gatsby-start...

It is as easy to set this up, as it is to install LAMP+WordPress on a VPS.

Re: Ask HN: Do you blog under your own domain? How?

#15
I use Pelican ( https://blog.getpelican.com/ ) and host on NearlyFreeSpeech ( https://www.nearlyfreespeech.net/ ) for my blog, https://snafuhall.com/ .

I don't have much traffic; the blog and email/etc runs less than $10/mo.

It's possible to lease a bare IP range and set up your own DNS servers, etc. For small amounts of traffic theres no reason you couldn't use a RasPi to serve a blog that way. There's also drawbacks and headaches that make renting someone else's stuff attractive.

Re: Ask HN: Do you blog under your own domain? How?

#16
Yes: https://theandrewbailey.com/

1. Namecheap DNS registration.

2. Server is an old PC in my basement.

3. Dynamic DNS client running on my OpenWRT router.

4. Code is a homemade blog system. Linux, Java (Servlets + JSP + EJB), Payara, PostgreSQL.

5. Uses a Let's Encrypt certificate.

It's totally old school, but fun to play with, and it serves pages fast.

Re: Ask HN: Do you blog under your own domain? How?

#18
A pair of $5 cloud servers and a Cloudflare load balancer for resiliency.

Ansible is used to build and maintain both servers, and the actual web content is in Git.

I use `receive.denyCurrentBranch=updateInstead` in the repo config on the servers, so I just do a push to each and the new content goes live instantly.

The reason for doing it this way is that I want to fully own my platform. I have fine-grain control over all of the web server headers, PHP configuration, etc.

https://www.jamieweb.net/

Re: Ask HN: Do you blog under your own domain? How?

#19

Generated by Hugo, hosted on smallest AWS LightSail, own domain. Uses nginx, Lets Encrypt, FBSD. Auto-updates everything and if something breaks it breaks. 1000 days and zero maintenance. https://blog.eutopian.io/the-stack/

If these are static pages, why not S3 + CloudFront + ACM certificate?

This way you don't have to risk it may break and if it is a low traffic site it might be cheaper.

Re: Ask HN: Do you blog under your own domain? How?

#20
I run Sovereign [1] on a Vultr VPS, $5/mo. Flask on Apache for blogging. (Sovereign is "a set of Ansible playbooks to build and maintain your own private cloud: email, calendar, contacts, file sync, IRC bouncer, VPN, and more.")

[1] https://github.com/sovereign/sovereign

Post reply on HN