<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <author>
    <name>Qinsiran</name>
  </author>
  <generator uri="https://hexo.io/">Hexo</generator>
  <id>https://qinsiran.online/</id>
  <link href="https://qinsiran.online/" rel="alternate"/>
  <link href="https://qinsiran.online/atom.xml" rel="self"/>
  <rights>All rights reserved 2026, Qinsiran</rights>
  <subtitle>记录技术 · 探索与思考</subtitle>
  <title>Qinsiran's Blog</title>
  <updated>2026-09-08T04:00:00.000Z</updated>
  <entry>
    <author>
      <name>Qinsiran</name>
    </author>
    <category term="技术" scheme="https://qinsiran.online/categories/%E6%8A%80%E6%9C%AF/"/>
    <category term="自托管" scheme="https://qinsiran.online/tags/%E8%87%AA%E6%89%98%E7%AE%A1/"/>
    <category term="Linux" scheme="https://qinsiran.online/tags/Linux/"/>
    <content>
      <![CDATA[<p>这台服务器上跑了不少自托管服务,借博客开张梳理一份全景图。</p><h2 id="服务一览"><a href="#服务一览" class="headerlink" title="服务一览"></a>服务一览</h2><table><thead><tr><th>服务</th><th>用途</th><th>入口</th></tr></thead><tbody><tr><td>MathModelAgent</td><td>数学建模多 Agent 系统,输入赛题产出论文</td><td><a href="/mma/">&#x2F;mma&#x2F;</a></td></tr><tr><td>OpenList</td><td>网盘 &#x2F; 文件列表</td><td><a href="/openlist/">&#x2F;openlist&#x2F;</a></td></tr><tr><td>dsh</td><td>DeepSeek Agent 工作台</td><td><a href="/dsh/">&#x2F;dsh&#x2F;</a></td></tr><tr><td>MCSManager</td><td>游戏服务器管理面板</td><td><a href="/mcs/">&#x2F;mcs&#x2F;</a></td></tr><tr><td>new-api</td><td>LLM 网关 &#x2F; API 中转</td><td><a href="https://api.qinsiran.online/">api.qinsiran.online</a></td></tr><tr><td>PlantDoctor</td><td>植物诊断大创项目</td><td><a href="https://plantdoctor.qinsiran.online/">plantdoctor.qinsiran.online</a></td></tr></tbody></table><p>各服务入口都收录在<a href="/services/">服务导航</a>页面。</p><h2 id="架构上值得一提的设计"><a href="#架构上值得一提的设计" class="headerlink" title="架构上值得一提的设计"></a>架构上值得一提的设计</h2><p><strong>统一网关</strong>:所有服务共用一个 nginx 容器做总入口,80&#x2F;443 之外大多数服务不做公网端口映射,只能经网关按路径访问。</p><p><strong>统一认证(SSO)</strong>:受保护的服务通过 nginx 的 <code>auth_request</code> 交给门户后端校验 Cookie,一处登录、处处通行。登录态在各子域间共享。</p><p><strong>静态优先</strong>:能静态化的就静态化(比如本博客),不需要常驻应用进程,资源占用极低。</p><h2 id="运维心得"><a href="#运维心得" class="headerlink" title="运维心得"></a>运维心得</h2><ul><li>磁盘是大敌:Docker 构建缓存、旧镜像、上传残留是占用大头,定期 <code>docker system df</code> 检查</li><li>改共享 nginx 配置前先 <code>nginx -t</code>,一个 server 块写错会波及所有服务</li><li>证书要有到期提醒,别等浏览器报警才发现</li></ul><p>以后有新的折腾成果也会写在这里。</p>]]>
    </content>
    <id>https://qinsiran.online/posts/self-hosted-services/</id>
    <link href="https://qinsiran.online/posts/self-hosted-services/"/>
    <published>2026-09-08T04:00:00.000Z</published>
    <summary>
      <![CDATA[<p>这台服务器上跑了不少自托管服务,借博客开张梳理一份全景图。</p>
<h2 id="服务一览"><a href="#服务一览" class="headerlink"]]>
    </summary>
    <title>服务器上的自托管服务全景</title>
    <updated>2026-09-08T04:00:00.000Z</updated>
  </entry>
  <entry>
    <author>
      <name>Qinsiran</name>
    </author>
    <category term="技术" scheme="https://qinsiran.online/categories/%E6%8A%80%E6%9C%AF/"/>
    <category term="Hexo" scheme="https://qinsiran.online/tags/Hexo/"/>
    <category term="博客" scheme="https://qinsiran.online/tags/%E5%8D%9A%E5%AE%A2/"/>
    <content>
      <![CDATA[<p>记录一下本站的搭建过程,方便日后重建或迁移。</p><h2 id="为什么选-Hexo"><a href="#为什么选-Hexo" class="headerlink" title="为什么选 Hexo"></a>为什么选 Hexo</h2><ul><li><strong>纯静态</strong>:构建产物就是 HTML&#x2F;CSS&#x2F;JS,不需要常驻进程,扔给 nginx 就能跑</li><li><strong>Markdown 写作</strong>:文章就是一个个 <code>.md</code> 文件,好备份、好迁移、好版本管理</li><li><strong>生态成熟</strong>:Butterfly 等主题功能完善,搜索、RSS、归档开箱即用</li></ul><p>对比过 Hugo,速度更快,但 Hexo 的 Node 工具链在本机已经验证可用(npm 走国内镜像很稳),模板定制也更顺手,最终选了它。</p><h2 id="初始化"><a href="#初始化" class="headerlink" title="初始化"></a>初始化</h2><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line">npm install -g hexo-cli        <span class="comment"># 或使用 npx hexo-cli</span></span><br><span class="line">hexo init blog</span><br><span class="line"><span class="built_in">cd</span> blog</span><br><span class="line">npm install</span><br><span class="line"></span><br><span class="line"><span class="comment"># 主题走 npm 安装,不依赖 GitHub 直连</span></span><br><span class="line">npm install hexo-theme-butterfly hexo-generator-search hexo-generator-feed hexo-wordcount</span><br></pre></td></tr></table></figure><p>站点根目录放一个 <code>_config.butterfly.yml</code>,即可覆盖主题默认配置,主题升级不会丢定制。</p><h2 id="关键配置"><a href="#关键配置" class="headerlink" title="关键配置"></a>关键配置</h2><figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># _config.yml</span></span><br><span class="line"><span class="attr">url:</span> <span class="string">https://example.com</span></span><br><span class="line"><span class="attr">permalink:</span> <span class="string">posts/:title/</span>   <span class="comment"># 短链,按文件名生成</span></span><br><span class="line"><span class="attr">theme:</span> <span class="string">butterfly</span></span><br></pre></td></tr></table></figure><figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># _config.butterfly.yml</span></span><br><span class="line"><span class="attr">darkmode:</span></span><br><span class="line">  <span class="attr">enable:</span> <span class="literal">true</span></span><br><span class="line">  <span class="attr">button:</span> <span class="literal">true</span></span><br><span class="line"><span class="attr">display_mode:</span> <span class="string">dark</span>          <span class="comment"># 默认深色</span></span><br></pre></td></tr></table></figure><h2 id="深色科技风定制"><a href="#深色科技风定制" class="headerlink" title="深色科技风定制"></a>深色科技风定制</h2><p>想和站点首页风格统一,核心是三层:</p><ol><li><strong>变量覆盖</strong>:在自定义 CSS 里覆盖主题的 CSS 变量(<code>--global-bg</code>、<code>--card-bg</code> 等),把底色换成 <code>#060a13</code></li><li><strong>毛玻璃</strong>:给卡片和导航加 <code>backdrop-filter: blur()</code> + 半透明背景 + 细描边</li><li><strong>背景特效</strong>:用几行 JS 注入网格线和三颗模糊渐变光球,<code>animation</code> 让它们慢慢漂浮</li></ol><figure class="highlight css"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line"><span class="selector-tag">html</span><span class="selector-attr">[data-theme=<span class="string">&#x27;dark&#x27;</span>]</span> &#123;</span><br><span class="line">  <span class="attr">--global-bg</span>: <span class="number">#060a13</span>;</span><br><span class="line">  <span class="attr">--card-bg</span>: <span class="built_in">rgba</span>(<span class="number">15</span>, <span class="number">23</span>, <span class="number">42</span>, <span class="number">0.55</span>);</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure><h2 id="日常写作"><a href="#日常写作" class="headerlink" title="日常写作"></a>日常写作</h2><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">hexo new <span class="string">&quot;文章标题&quot;</span>     <span class="comment"># 在 source/_posts 生成 md</span></span><br><span class="line">hexo clean &amp;&amp; hexo g    <span class="comment"># 清理并构建</span></span><br><span class="line">hexo s                  <span class="comment"># 本地 http://localhost:4000/blog/ 预览</span></span><br></pre></td></tr></table></figure><blockquote><p>现在博客挂在本站 <code>/blog/</code> 子路径,管理员登录门户后可直接在 <a href="/blog/admin/">&#x2F;blog&#x2F;admin&#x2F;</a> 在线发布。</p></blockquote><p>剩下的就是坚持写了。</p>]]>
    </content>
    <id>https://qinsiran.online/posts/build-blog-with-hexo/</id>
    <link href="https://qinsiran.online/posts/build-blog-with-hexo/"/>
    <published>2026-09-08T03:00:00.000Z</published>
    <summary>
      <![CDATA[<p>记录一下本站的搭建过程,方便日后重建或迁移。</p>
<h2 id="为什么选-Hexo"><a href="#为什么选-Hexo" class="headerlink" title="为什么选 Hexo"></a>为什么选]]>
    </summary>
    <title>用 Hexo + Butterfly 搭建这个博客</title>
    <updated>2026-09-08T03:00:00.000Z</updated>
  </entry>
  <entry>
    <author>
      <name>Qinsiran</name>
    </author>
    <category term="生活" scheme="https://qinsiran.online/categories/%E7%94%9F%E6%B4%BB/"/>
    <category term="随笔" scheme="https://qinsiran.online/tags/%E9%9A%8F%E7%AC%94/"/>
    <content>
      <![CDATA[<p>欢迎来到我的个人博客!这是本站的第一篇文章。</p><h2 id="这里会写什么"><a href="#这里会写什么" class="headerlink" title="这里会写什么"></a>这里会写什么</h2><ul><li><strong>技术笔记</strong>:开发中踩过的坑、好用的工具、值得记录的解决方案</li><li><strong>自托管实践</strong>:把服务跑在自己服务器上的经验与心得</li><li><strong>折腾记录</strong>:偶尔写写生活、想法和其他有趣的事</li></ul><h2 id="关于本站"><a href="#关于本站" class="headerlink" title="关于本站"></a>关于本站</h2><p>本站基于 <a href="https://hexo.io/">Hexo</a> 构建,使用 Butterfly 主题并做了门户同款深色科技风定制。站点托管在自己的服务器上,与现有的 AI 服务门户同源同门禁。</p><blockquote><p>建一个博客,把学到的东西写下来。写出来,才算真的学会。</p></blockquote><p>如果你也想开始写博客,欢迎参考《<a href="/blog/posts/build-blog-with-hexo/">用 Hexo + Butterfly 搭建这个博客</a>》这篇文章。</p>]]>
    </content>
    <id>https://qinsiran.online/posts/hello-world/</id>
    <link href="https://qinsiran.online/posts/hello-world/"/>
    <published>2026-09-08T02:00:00.000Z</published>
    <summary>
      <![CDATA[<p>欢迎来到我的个人博客!这是本站的第一篇文章。</p>
<h2 id="这里会写什么"><a href="#这里会写什么" class="headerlink"]]>
    </summary>
    <title>博客开张 🎉</title>
    <updated>2026-09-08T02:00:00.000Z</updated>
  </entry>
</feed>
