<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.10.0">Jekyll</generator><link href="https://my-name-is.evanhfw.my.id/feed.xml" rel="self" type="application/atom+xml" /><link href="https://my-name-is.evanhfw.my.id/" rel="alternate" type="text/html" /><updated>2026-09-27T06:28:43+00:00</updated><id>https://my-name-is.evanhfw.my.id/feed.xml</id><title type="html">Evan Hanif Widiatama</title><subtitle>AI Engineer | Computer Vision, ML &amp; Backend</subtitle><entry><title type="html">Moving this site off GitHub Pages</title><link href="https://my-name-is.evanhfw.my.id/blog/moving-this-site-off-github-pages/" rel="alternate" type="text/html" title="Moving this site off GitHub Pages" /><published>2026-09-27T00:00:00+00:00</published><updated>2026-09-27T00:00:00+00:00</updated><id>https://my-name-is.evanhfw.my.id/blog/moving-this-site-off-github-pages</id><content type="html" xml:base="https://my-name-is.evanhfw.my.id/blog/moving-this-site-off-github-pages/"><![CDATA[<p>For a while this portfolio was a plain Jekyll repo served by GitHub Pages. That worked fine. So why move it onto my own machines?</p>

<p>Mostly because I already run a small homelab, and a portfolio that is itself an engineering project is a more honest advertisement than a static file dump. I also wanted the practice: TLS, reverse proxying, caching, and build pipelines are things I care about, and this site is a safe place to test them.</p>

<h2 id="how-the-site-is-served-now">How the site is served now</h2>

<p>The path from a visitor to the content looks like this:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>Cloudflare (DNS + edge)
  -&gt; VPS: Caddy          (public entry, TLS via DNS-01)
    -&gt; Tailscale mesh    (private network between machines)
      -&gt; home nginx      (serves this static Jekyll build)
</code></pre></div></div>

<p>What each hop does:</p>

<ul>
  <li><strong>Cloudflare</strong> terminates TLS for the domain and proxies traffic. The DNS zone lives there, and a scoped API token handles DNS-01 certificate challenges.</li>
  <li><strong>The VPS</strong> is the only machine with a public entry point. Caddy handles virtual hosts, certificates, and reverse proxying. It is the one box I could lose and rebuild in an hour.</li>
  <li><strong>Tailscale</strong> connects the VPS to the home server. The web container at home listens only on the tailnet address: not on the local network, not on the internet.</li>
  <li><strong>nginx at home</strong> serves a static build from a read-only directory that the build pipeline writes into.</li>
</ul>

<h2 id="why-bind-to-the-tailnet-only">Why bind to the tailnet only</h2>

<p>The usual home server web setup means port forwarding and dynamic DNS, and it puts your house on the internet. I prefer the opposite: nothing at home is exposed. The VPS is the single public surface, and it reaches into my network over the private mesh. If the VPS changes, exactly one hop changes.</p>

<h2 id="the-build-pipeline">The build pipeline</h2>

<p>Content is a small Jekyll repository. One script builds it in a pinned Docker image (Ruby, Jekyll, and the theme gem), and the output directory is mounted read-only into the nginx container. Publishing an update is: edit markdown, run the script, refresh. No container restarts, no deploy daemon, no CI minutes.</p>

<h2 id="a-few-things-i-learned">A few things I learned</h2>

<ul>
  <li>Static sites are the easiest thing to self-host well: no database, no runtime, and no attack surface beyond a file server.</li>
  <li>Keep the public surface tiny. One public entry host, everything else on a private mesh.</li>
  <li>Pin your dependencies. The build image pins exact gem versions, and the build is one script, so a rebuild a year from now behaves like today’s.</li>
  <li>Caches have long memories. When you fix an asset, remember that CDNs and browsers may keep serving the old bytes for hours; version your asset URLs when it matters.</li>
</ul>

<p>(There was also a small adventure with image formats: I converted my profile photo to a lean WebP and accidentally flattened its transparency, which turned a round portrait into a black square. That is a story for another post.)</p>

<p>The source of this site lives on <a href="https://github.com/evanhfw">GitHub</a>. If you run a small home server and have been meaning to move your site onto it: it takes an afternoon, and you get to keep the tinkering.</p>]]></content><author><name></name></author><category term="self-hosting" /><category term="homelab" /><category term="jekyll" /><category term="docker" /><summary type="html"><![CDATA[For a while this portfolio was a plain Jekyll repo served by GitHub Pages. That worked fine. So why move it onto my own machines?]]></summary></entry></feed>