Why I Moved My Website Away from Self-Hosting

At first, I wanted to run my website on a server at home. I liked the feeling of a page I had made actually running on my own server. The first version was only a temporary page with no real content, but it was fun just to get self-hosting started.

At some point, though, I changed how I hosted it. There was no single dramatic event. It was the result of concerns that had built up around network routing and server operations.

The routing issues kept bothering me

Cloudflare managed the DNS for my domain, and external traffic went through a reverse proxy on a VPS before reaching my server in Canada. There were hard-to-resolve physical issues along that route, and the connection could be inconsistent, with latency spikes from time to time.

If the problem had simply been a mistake in my NGINX or Node.js configuration, I could have tried to fix it. But it did not feel like something I could solve by changing settings alone. I began to question whether I should keep that setup.

Security was another consideration. A reverse proxy can keep an internal server's IP from being directly exposed, but adding services also means more routes and settings to manage. If I run a web application myself, I also have to consider vulnerabilities or misconfiguration that could expose the origin server. A service with a database would need separate protections against issues such as SQL injection.

My current website is static and does not use a database. Even so, I wanted to reduce the attack surface and maintenance burden that come with hosting a public service myself.

Domains were less expensive than I thought

I knew about Cloudflare, but I had not looked closely into domains and hosting. I assumed a domain would be fairly expensive, so I did not consider one at first.

I had heard people mention domain prices in dollars and assumed they meant a monthly price. Later, I found out they were talking about the annual cost. My domain cost roughly $9 for the first year with a promotion, and renewal is about $10 per year. That works out to around $0.80 per month. It was much cheaper than I had imagined.

So I bought a domain somewhat impulsively. While figuring out how to host the site, I compared GitHub Pages with self-hosting. I had used GitHub Pages before, but it did not quite meet my needs at the time, and I also wanted to rebuild the website more generally.

I described my situation to an AI assistant and asked it to compare the options. It suggested looking into Cloudflare's static site hosting. After doing more research, I chose Cloudflare Workers Static Assets. With my current setup, I do not pay a separate hosting charge to Cloudflare.

A push to the repository triggers deployment

The website code is public in a GitHub repository. I set it up so that pushing changes to the main branch automatically builds and deploys the site. I do not have to log into a server to upload files or restart a process.

Moving the hosting also gave me the separation I wanted. The website deployment no longer depends on the state of my home server. Even if my home network or server has a problem, the static site is served from a separate deployment environment.

I write in Markdown and generate HTML

I write the blog posts as Markdown files. Markdown is familiar to me, and it is easier to read and edit a draft that way. I could write posts in HTML, but Markdown makes the content easier to scan without tags mixed in.

The build process reads the Markdown source and automatically creates Korean, English, and Japanese pages. That lets me focus on writing, then add a file to the repository when I am ready to publish.

If you want to look at the technology choices or how I solved a problem, feel free to explore the Markdown drafts and code in the public GitHub repository. I hope it can be a useful reference if you are interested in writing in Markdown and turning static pages into a website.

Related reading: The Domain I Bought on a Whim · Servers and a Warm Room in Canada.