<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-CN"><generator uri="https://jekyllrb.com/" version="3.10.0">Jekyll</generator><link href="https://hni.niuma.club/feed.xml" rel="self" type="application/atom+xml" /><link href="https://hni.niuma.club/" rel="alternate" type="text/html" hreflang="zh-CN" /><updated>2026-11-22T03:29:31+08:00</updated><id>https://hni.niuma.club/feed.xml</id><title type="html">huri 的博客</title><subtitle>记录生活、技术与折腾</subtitle><entry><title type="html">零成本折腾记：一个博客、一台云电脑和一个图片站</title><link href="https://hni.niuma.club/2026/11/22/free-cloud-tinkering/" rel="alternate" type="text/html" title="零成本折腾记：一个博客、一台云电脑和一个图片站" /><published>2026-11-22T00:00:00+08:00</published><updated>2026-11-22T00:00:00+08:00</updated><id>https://hni.niuma.club/2026/11/22/free-cloud-tinkering</id><content type="html" xml:base="https://hni.niuma.club/2026/11/22/free-cloud-tinkering/"><![CDATA[<p>这个月闲下来，给自己定了个小目标：不花一分钱，把几样东西在网上跑起来。现在它们都上线了，记录一下过程和踩过的坑。</p>

<h2 id="1-这个博客github-pages--免费二级域名">1. 这个博客：GitHub Pages + 免费二级域名</h2>

<p>博客用 Jekyll 写，放在 GitHub Pages 上，免费，还自带 HTTPS。</p>

<p>域名 <code class="language-plaintext highlighter-rouge">hni.niuma.club</code> 是在 HapDNS 领的免费二级域名。绑定其实很简单：</p>

<ul>
  <li>在 DNS 里加一条 A 记录，指向 GitHub Pages 的 IP（比如 <code class="language-plaintext highlighter-rouge">185.199.111.153</code>）</li>
  <li>在仓库根目录放一个 <code class="language-plaintext highlighter-rouge">CNAME</code> 文件，里面写上域名</li>
</ul>

<p>几分钟后证书自动签好，<code class="language-plaintext highlighter-rouge">https://hni.niuma.club</code> 就能打开了。</p>

<p><strong>小坑</strong>：如果先放了 <code class="language-plaintext highlighter-rouge">CNAME</code> 文件、DNS 却还没配好，访问 <code class="language-plaintext highlighter-rouge">xxx.github.io</code> 会被跳到一个打不开的域名。所以我的顺序是：先确认解析生效，再加 <code class="language-plaintext highlighter-rouge">CNAME</code>。</p>

<h2 id="2-instabox一台免费的云电脑">2. InstaBox：一台免费的云电脑</h2>

<p>InstaBox 免费档给了一台 4 核 8G 的机器。缺点是空闲会自动休眠，单次运行时长也有限。</p>

<p>解决办法是部署了一个 Cloudflare Worker 做保活：每 9 分钟检查一次，机器睡了就把它叫醒。跑了两个多星期，很稳。</p>

<p><strong>提醒</strong>：免费云电脑的条款一般都禁止跑代理/VPN，别拿它干这个，容易被封。</p>

<h2 id="3-uppcoder一个图片分享站">3. Uppcoder：一个图片分享站</h2>

<p>Uppcoder 的免费 Spark 套餐可以跑 1 个应用。我部署了一个开源的 Express + SQLite 图片分享系统，像发朋友圈一样发图文，支持大文件断点续传。</p>

<p>踩的坑主要是启动脚本：要先 <code class="language-plaintext highlighter-rouge">cd</code> 到应用目录、导出端口，再 <code class="language-plaintext highlighter-rouge">npm install</code> 和 <code class="language-plaintext highlighter-rouge">npm start</code>，不然服务起不来。另外记得把站点从 Private 切成 Public，别人才能访问。</p>

<h2 id="小结">小结</h2>

<table>
  <thead>
    <tr>
      <th>项目</th>
      <th>平台</th>
      <th>花费</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>博客</td>
      <td>GitHub Pages + HapDNS</td>
      <td>0 元</td>
    </tr>
    <tr>
      <td>云电脑</td>
      <td>InstaBox + Cloudflare Workers</td>
      <td>0 元</td>
    </tr>
    <tr>
      <td>图片站</td>
      <td>Uppcoder Spark</td>
      <td>0 元</td>
    </tr>
  </tbody>
</table>

<p>免费的东西都有限制，但用来学习和折腾完全够了。下一步打算给博客多写点内容，也许把图片站的照片和这里串起来。</p>

<p>有问题欢迎交流～</p>]]></content><author><name></name></author><category term="折腾" /><category term="技术" /><summary type="html"><![CDATA[这个月闲下来，给自己定了个小目标：不花一分钱，把几样东西在网上跑起来。现在它们都上线了，记录一下过程和踩过的坑。]]></summary></entry><entry><title type="html">你好，世界</title><link href="https://hni.niuma.club/2026/11/01/hello-world/" rel="alternate" type="text/html" title="你好，世界" /><published>2026-11-01T00:00:00+08:00</published><updated>2026-11-01T00:00:00+08:00</updated><id>https://hni.niuma.club/2026/11/01/hello-world</id><content type="html" xml:base="https://hni.niuma.club/2026/11/01/hello-world/"><![CDATA[<p>博客开张啦！这是第一篇文章。</p>

<p>以后我会在这里写点生活、技术和折腾的记录。</p>

<h2 id="怎么写新文章">怎么写新文章</h2>

<p>在 <code class="language-plaintext highlighter-rouge">_posts</code> 文件夹里新建一个 <code class="language-plaintext highlighter-rouge">年-月-日-标题.md</code> 文件，用 Markdown 写内容，提交后几分钟就会自动出现在首页。</p>]]></content><author><name></name></author><category term="随笔" /><summary type="html"><![CDATA[博客开张啦！这是第一篇文章。]]></summary></entry></feed>