<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
        <title>烂泥の小窝</title>
        <link>https://www.lanni.me/</link>
        <description>这里是烂泥の小窝-无限进步 热爱生活</description>
        <lastBuildDate>Sun, 10 May 2026 02:55:58 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <language>en-US</language>
        <copyright>All rights reserved 2026, 烂泥</copyright>
        <item>
            <title><![CDATA[陕西综合素质评价电子档案填写教程]]></title>
            <link>https://www.lanni.me/article/shanxizongsu</link>
            <guid>https://www.lanni.me/article/shanxizongsu</guid>
            <pubDate>Fri, 20 Mar 2026 00:00:00 GMT</pubDate>
            <description><![CDATA[这个是陕西综评的填写教程，可能对大部分人没啥用]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-34e715c4c92e806db75ec8e685e61892"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><div class="notion-callout notion-gray_background_co notion-block-34e715c4c92e80b78bf1d236ffb9329e"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="😀">😀</span></div><div class="notion-callout-text">本教程提供手机版和电脑版两种操作方式，帮助用户编辑和制作压缩包。手机版教程首先指导用户下载压缩包并保存到文件管理目录，然后使用MT管理器编辑文件，替换个人信息和证书。电脑版教程则引导用户进入陕西综评网站，输入账号密码，按照填写指南进行操作。两种方式都提供了详细的步骤和建议，帮助用户完成压缩包的制作和提交。</div></div><div class="notion-text notion-block-34e715c4c92e805f8402f868e0481928">此教程分为手机版和电脑版请跳转到对应版本！</div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-34e715c4c92e8026b98ae7d08b1c2d61" data-id="34e715c4c92e8026b98ae7d08b1c2d61"><span><div id="34e715c4c92e8026b98ae7d08b1c2d61" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34e715c4c92e8026b98ae7d08b1c2d61" title="手机版"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">手机版</span></span></h3><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-34e715c4c92e8012beaad7ac3904268e" data-id="34e715c4c92e8012beaad7ac3904268e"><span><div id="34e715c4c92e8012beaad7ac3904268e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34e715c4c92e8012beaad7ac3904268e" title="找文件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">找文件</span></span></h4><ol start="1" class="notion-list notion-list-numbered notion-block-34e715c4c92e80ceb9def2fda2eac458" style="list-style-type:decimal"><li>如果什么都不会的话请下载压缩包</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-34e715c4c92e80a88fa4d2046da84dde" style="list-style-type:decimal"><li>（此压缩包为-华博枫-的压缩包只需要替 换一下内容就可以了）这个压缩包可以去<b>学生群</b>里下载</li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-34e715c4c92e80ab9502fba2c492c2fb" style="list-style-type:decimal"><li>在聊天群中点击压缩包下载</li></ol><ol start="4" class="notion-list notion-list-numbered notion-block-34e715c4c92e8033ac67c3e6076f21ec" style="list-style-type:decimal"><li>下载完成后右上角三个点点击，然后选择 <b>保存</b></li></ol><ol start="5" class="notion-list notion-list-numbered notion-block-34e715c4c92e80e9a715f0bd20974ac6" style="list-style-type:decimal"><li>然后它会保存到这个目录Download/WeiXin/</li></ol><ol start="6" class="notion-list notion-list-numbered notion-block-34e715c4c92e809f853ec31afbc7958a" style="list-style-type:decimal"><li>打开 <b>文件管理 </b>（或者类似名字因为手机系统不同，个别叫法不同）找到这个目录，你就可以看到文件了</li></ol><ol start="7" class="notion-list notion-list-numbered notion-block-34e715c4c92e800bb1b8ed595c231bb3" style="list-style-type:decimal"><li>此时不要乱动，此处只是让你记住他的保存目录，接下来才是编辑。</li></ol><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-34e715c4c92e8080a1e2c0775a212ed2" data-id="34e715c4c92e8080a1e2c0775a212ed2"><span><div id="34e715c4c92e8080a1e2c0775a212ed2" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34e715c4c92e8080a1e2c0775a212ed2" title="编辑文件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">编辑文件</span></span></h4><ol start="1" class="notion-list notion-list-numbered notion-block-34e715c4c92e800b8855df028f21ea83" style="list-style-type:decimal"><li>将你的 体测成绩 证书 视力表 等数据准备好</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-34e715c4c92e8040ad97ce95256a1801" style="list-style-type:decimal"><li>由于我把文件东西都放好了，你只需要根据文件内容将你自己的 证书 文档信息进行替换（这边推荐使用MT管理器–<b><a class="notion-link" href="https://pan.mt2.cn/apk/26020493" target="_blank" rel="noopener noreferrer"><span class="notion-inline-underscore">按这里下载MT管理器</span></a></b>）</li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-34e715c4c92e80c293fac177d666088e" style="list-style-type:decimal"><li>以下操作需要文件管理器带文本编辑功能，如果你的文件管理器没有此功能，就下载MT管理器吧！（以下教程默认使用MT管理器）</li></ol><ol start="4" class="notion-list notion-list-numbered notion-block-34e715c4c92e8088b824c546fef204c4" style="list-style-type:decimal"><li>打开MT管理器</li></ol><ol start="5" class="notion-list notion-list-numbered notion-block-34e715c4c92e806e88a5c6ddbaa48567" style="list-style-type:decimal"><li>找到他的保存目录/Download/WeiXin/</li></ol><ol start="6" class="notion-list notion-list-numbered notion-block-34e715c4c92e80d48061c8349e05c13a" style="list-style-type:decimal"><li>由于他是两个操作窗口，所以可以一次浏览两个文件夹，例如左边打开你的 证书文件夹，右边打开 西安市综素 模版</li></ol><ol start="7" class="notion-list notion-list-numbered notion-block-34e715c4c92e80ddaa06ff15604b923b" style="list-style-type:decimal"><li>长按 华博枫的模版 选择解压到/解压到当前目录</li></ol><ol start="8" class="notion-list notion-list-numbered notion-block-34e715c4c92e80ad8e8cd8eee5aa6375" style="list-style-type:decimal"><li>进入小文件夹中，你会发现小文件夹还是压缩包</li></ol><ol start="9" class="notion-list notion-list-numbered notion-block-34e715c4c92e800e9ab7fc274a843209" style="list-style-type:decimal"><li>用刚才的方式长按解压/解压到当前目录</li></ol><ol start="10" class="notion-list notion-list-numbered notion-block-34e715c4c92e80888453f1a76124c85d" style="list-style-type:decimal"><li>这边给个小建议！可以将一个文件改完后再解压下一个压缩包，这样就不会搞混了</li></ol><ol start="11" class="notion-list notion-list-numbered notion-block-34e715c4c92e80fb8633db8b40480614" style="list-style-type:decimal"><li>然后打开对应的小文件夹</li></ol><ol start="12" class="notion-list notion-list-numbered notion-block-34e715c4c92e8007a173c168f9a64e9b" style="list-style-type:decimal"><li>如果是文档的话，直接点击，将身份信息替换成自己的</li></ol><ol start="13" class="notion-list notion-list-numbered notion-block-34e715c4c92e80d79c1fef08a988c290" style="list-style-type:decimal"><li>我用下面图片做示例教你如何正确 看文档</li></ol><ol start="14" class="notion-list notion-list-numbered notion-block-34e715c4c92e8026b386cee018d542ae" style="list-style-type:decimal"><li>最左边是展示文档有几行内容，他那里有1 2 3这种注释来表示这是第几行</li></ol><ol start="15" class="notion-list notion-list-numbered notion-block-34e715c4c92e80c88a53f4711c0ebbff" style="list-style-type:decimal"><li>然后 第1行 和 第2行 这两个信息是对应的，用逗号信息分割</li></ol><ol start="16" class="notion-list notion-list-numbered notion-block-34e715c4c92e809e8ee3f27b55495994" style="list-style-type:decimal"><li>例如 1 中第一个 是 sfzh ，他正好在 2 中 第一个 就是填写身份证号信息</li></ol><ol start="17" class="notion-list notion-list-numbered notion-block-34e715c4c92e80389885f6ca970df5fe" style="list-style-type:decimal"><li>里面小逗号就是信息分割，替换的时候，看着第一行内容替换第二行内容</li></ol><ol start="18" class="notion-list notion-list-numbered notion-block-34e715c4c92e80e882d5ee324794bdd1" style="list-style-type:decimal"><li>将你的信息填写完成后保存退出</li></ol><ol start="19" class="notion-list notion-list-numbered notion-block-34e715c4c92e80728f16e42c1eb360b0" style="list-style-type:decimal"><li>还有证书，将模板中的证书名字和后缀记好就可以删除了，然后把你的证书导入并且将名字和后缀改成一模一样的</li></ol><ol start="20" class="notion-list notion-list-numbered notion-block-34e715c4c92e80208b92d1e2362208ff" style="list-style-type:decimal"><li>然后依次更改所有文件</li></ol><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-34e715c4c92e804b9caedd9e96c6f7e6" data-id="34e715c4c92e804b9caedd9e96c6f7e6"><span><div id="34e715c4c92e804b9caedd9e96c6f7e6" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34e715c4c92e804b9caedd9e96c6f7e6" title="制作压缩包"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">制作压缩包</span></span></h4><div class="notion-text notion-block-34e715c4c92e80a39017ee5099cee041">我的模版是如何压缩的，你就仿照我的方式进行压缩就行了</div><div class="notion-text notion-block-34e715c4c92e80949138ef54eef8555c">记住是 小文件压缩成压缩包</div><div class="notion-text notion-block-34e715c4c92e80e0bdf9e17916e4d8f2">完成后就可以把大文件夹打包成压缩包发群里了。</div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-34e715c4c92e80a69a82fecfe2e5037d" data-id="34e715c4c92e80a69a82fecfe2e5037d"><span><div id="34e715c4c92e80a69a82fecfe2e5037d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34e715c4c92e80a69a82fecfe2e5037d" title="电脑版"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">电脑版</span></span></h3><ol start="1" class="notion-list notion-list-numbered notion-block-34e715c4c92e80cd8dc7d124fa2a3355" style="list-style-type:decimal"><li>进入 <b>陕西综评</b> 这个网址中（就是领证书这个网址，它里面有电脑版教程）</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-34e715c4c92e807989b9fa94f1845d6b" style="list-style-type:decimal"><li><b><a class="notion-link" href="https://www.xn--fp0a58s3wbcvs.com/#/" target="_blank" rel="noopener noreferrer"><span class="notion-inline-underscore">点击此处访问网站</span></a></b></li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-34e715c4c92e80c2a7c7ddc7912b756a" style="list-style-type:decimal"><li><span class="notion-inline-underscore">输入自己的账号密码</span></li></ol><ol start="4" class="notion-list notion-list-numbered notion-block-34e715c4c92e803c8425faa19ed8eb50" style="list-style-type:decimal"><li><span class="notion-inline-underscore">他那里有填写指南（他是使用电脑版操作的，你看着他的教程）</span></li></ol><ol start="5" class="notion-list notion-list-numbered notion-block-34e715c4c92e80a0a20de4941c53daf9" style="list-style-type:decimal"><li><span class="notion-inline-underscore">如果大家忘了账号密码的话我这里给大家提供一个账号密码</span></li></ol><div class="notion-text notion-block-34e715c4c92e8056ab1bff13c1b94040">账号sx100000</div><div class="notion-text notion-block-34e715c4c92e80fbbdf9dcfac4832079">密码zyx2026</div><div class="notion-text notion-block-34e715c4c92e80d8bf1dd81bd58721fb">大家根据这里面的进行电脑操作也是比较详细的。</div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[使用cloudflare和github搭建带后端的博客教程]]></title>
            <link>https://www.lanni.me/article/cloudflare-blog</link>
            <guid>https://www.lanni.me/article/cloudflare-blog</guid>
            <pubDate>Sat, 28 Mar 2026 00:00:00 GMT</pubDate>
            <description><![CDATA[不花一分钱，成本低到只要一个域名，你就可以搭建这个博客]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-34e715c4c92e80289d13c71912681f2f"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><div class="notion-callout notion-gray_background_co notion-block-34e715c4c92e80dea83bf791512a2721"><div class="notion-callout-text">本文详细介绍了两种博客部署方案：GitHub Actions 和 Cloudflare Workers。部署前需 Fork 仓库并准备 Cloudflare 资源及凭证。方案一通过 GitHub Actions 配置 Secrets 实现自动部署；方案二则通过 Dashboard 配置 wrangler.jsonc 和变量。此外，文章还涵盖了图片优化、邮件系统、人机验证等进阶配置，以及后续维护和常见问题排查方法。</div></div><div class="notion-text notion-block-34e715c4c92e80c198a3cab7cc164d40">首先给大家说一下，这个文章是我另外一个博客的文章</div><div class="notion-text notion-block-34e715c4c92e8044a57fdeec2de1ffd6">我的另外一个博客使用cloudflare和github搭建的博客，并且带后端，使用了cf的免费cdn和github的免费action所以可以做到不花一分钱。</div><div class="notion-text notion-block-34e715c4c92e801aa77ff0327535bb59">在开始之前，先看看这两种方式的差异：</div><table class="notion-simple-table notion-block-34e715c4c92e80a0ae13e738f83d0c16"><tbody><tr class="notion-simple-table-row notion-simple-table-header-row notion-block-34e715c4c92e80d0b556f9a5084b4e83"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>方案</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>平台</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>免费额度</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>特点</b></div></td></tr><tr class="notion-simple-table-row notion-block-34e715c4c92e8038b5b1e7f8e94afb1b"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>方案一</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">GitHub Actions</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">2000 分钟/月</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">灵活性高，可以手动触发部署，自动清除 CDN 缓存，后续更新方便</div></td></tr><tr class="notion-simple-table-row notion-block-34e715c4c92e80bbbc68fee5f8ee3282"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>方案二</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Cloudflare Workers Builds</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">3000 分钟/月</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">配置简单，无需管理 Token，但只能通过push来触发部署</div></td></tr></tbody></table><div class="notion-text notion-block-34e715c4c92e802d9423e5ffe7bed3fa">两种的额度都挺慷慨的，根本用不完，其中GitHub Actions对于公开仓库是免费用，2000分钟是对于私有仓库的限制。</div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-34e715c4c92e8041928cce7ac4769534" data-id="34e715c4c92e8041928cce7ac4769534"><span><div id="34e715c4c92e8041928cce7ac4769534" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34e715c4c92e8041928cce7ac4769534" title="第一阶段：前置准备（通用）"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>第一阶段：前置准备（通用）</b></span></span></h3><div class="notion-text notion-block-34e715c4c92e80f48d04d45f039f3408">无论选择哪种部署方式，你都需要先准备好这些「基础设施」。</div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-34e715c4c92e803fb0c0f7d303c13f32" data-id="34e715c4c92e803fb0c0f7d303c13f32"><span><div id="34e715c4c92e803fb0c0f7d303c13f32" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34e715c4c92e803fb0c0f7d303c13f32" title="1. Fork 本仓库 (必备)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>1. Fork 本仓库 (必备)</b></span></span></h4><div class="notion-text notion-block-34e715c4c92e805ea26ff86c504251d3"><b>这是所有部署的第一步</b>。点击仓库右上角的 <b>Fork</b> 按钮，将项目源码克隆到你自己的 GitHub 账号下。</div><blockquote class="notion-quote notion-block-34e715c4c92e8053b65ac9ea8d39dfa2"><div>只有 Fork 到自己的账号，你才有权配置密钥和触发自动部署。</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-34e715c4c92e800a9977d94f5d97fb0b" data-id="34e715c4c92e800a9977d94f5d97fb0b"><span><div id="34e715c4c92e800a9977d94f5d97fb0b" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34e715c4c92e800a9977d94f5d97fb0b" title="2. 注册与启用服务"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>2. 注册与启用服务</b></span></span></h4><ul class="notion-list notion-list-disc notion-block-34e715c4c92e8089a62aecc645d5c046"><li><b>Cloudflare 账号</b>：<b><a class="notion-link" href="https://dash.cloudflare.com/sign-up" target="_blank" rel="noopener noreferrer"><span class="notion-inline-underscore">点击注册</span></a></b>。注意需绑定付款方式以启用免费额度充足的 R2 和 Workers AI 服务（个人博客通常不会产生费用）。</li></ul><ul class="notion-list notion-list-disc notion-block-34e715c4c92e80688fb6cb93aebc1e7b"><li><b>域名托管</b>：将你的域名 DNS 托管到 Cloudflare，这是使用免费 CDN 和自动化部署的前提。</li></ul><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-34e715c4c92e8003a6e7c4b8cea4ab61" data-id="34e715c4c92e8003a6e7c4b8cea4ab61"><span><div id="34e715c4c92e8003a6e7c4b8cea4ab61" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34e715c4c92e8003a6e7c4b8cea4ab61" title="3. 创建 Cloudflare 资源"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>3. 创建 Cloudflare 资源</b></span></span></h4><div class="notion-text notion-block-34e715c4c92e80729880ec162259eb4d">在 Cloudflare Dashboard 中创建以下资源并记录其名称/ID：</div><ul class="notion-list notion-list-disc notion-block-34e715c4c92e80f89e4ff24ac47ece1c"><li><b>R2 存储桶</b>：用于存储图片和静态资源（记录<b>存储桶名称</b>）。</li></ul><ul class="notion-list notion-list-disc notion-block-34e715c4c92e8035ad2fe34e3088e55e"><li><b>D1 数据库</b>：用于存储文章和配置（记录 <b>Database ID</b>）。</li></ul><ul class="notion-list notion-list-disc notion-block-34e715c4c92e80df908beae953eab2a1"><li><b>KV 命名空间</b>：用于缓存（记录 <b>Namespace ID</b>）。</li></ul><ul class="notion-list notion-list-disc notion-block-34e715c4c92e802bbe38c41191ae2fef"><li><b>Queues 消息队列</b>：用于处理异步任务（队列名称为 <code class="notion-inline-code">blog-queue</code>）。</li></ul><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-34e715c4c92e804db2fde7485e9f30a4" data-id="34e715c4c92e804db2fde7485e9f30a4"><span><div id="34e715c4c92e804db2fde7485e9f30a4" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34e715c4c92e804db2fde7485e9f30a4" title="4. 获取核心凭证 (IDs)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>4. 获取核心凭证 (IDs)</b></span></span></h4><div class="notion-text notion-block-34e715c4c92e80eba2bbe3867c469451">你需要以下两个 ID 贯穿整个部署过程：</div><ul class="notion-list notion-list-disc notion-block-34e715c4c92e80feb943e23c7a76c801"><li><b>Account ID</b>：域名的概览页右侧查看。</li></ul><ul class="notion-list notion-list-disc notion-block-34e715c4c92e8039811ce9f486b8527b"><li><b>Zone ID</b>：域名的概览页右侧查看。</li></ul><ul class="notion-list notion-list-disc notion-block-34e715c4c92e8099ba6ae0c322ea8cb3"><li><code class="notion-inline-code">Account Home</code> -&gt; 你的域名</li></ul><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-34e715c4c92e80658be8d49cc157b706" data-id="34e715c4c92e80658be8d49cc157b706"><span><div id="34e715c4c92e80658be8d49cc157b706" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34e715c4c92e80658be8d49cc157b706" title="5. 创建 API 令牌 (Token)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>5. 创建 API 令牌 (Token)</b></span></span></h4><div class="notion-text notion-block-34e715c4c92e80b7934de546dc78940d">我们需要赋予部署脚本操作你账户的权限。点击右上角 <b>头像 -&gt; 我的个人资料 -&gt; API 令牌 -&gt; 创建令牌</b>。</div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-34e715c4c92e80cd8679e3da2f31fe53" data-id="34e715c4c92e80cd8679e3da2f31fe53"><span><div id="34e715c4c92e80cd8679e3da2f31fe53" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34e715c4c92e80cd8679e3da2f31fe53" title="A. CDN 刷新令牌 (必填)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>A. CDN 刷新令牌 (必填)</b></span></span></h4><ul class="notion-list notion-list-disc notion-block-34e715c4c92e80b996f8dcee810e0776"><li><b>模板</b>：使用「编辑区域 DNS」模板。</li></ul><ul class="notion-list notion-list-disc notion-block-34e715c4c92e80ca97f4d3c941ba5296"><li><b>权限</b>：区域 -&gt; 清除缓存 -&gt; 清除。</li></ul><ul class="notion-list notion-list-disc notion-block-34e715c4c92e80bd8c27ec26d02609fb"><li><b>资源</b>：包括 -&gt; 所有区域（或指定域名）。</li></ul><ul class="notion-list notion-list-disc notion-block-34e715c4c92e80e9b22beeb199d773e9"><li><b>用途</b>：应用部署后自动强制更新 CDN 缓存。</li></ul><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-34e715c4c92e80fea953ffe414d05e96" data-id="34e715c4c92e80fea953ffe414d05e96"><span><div id="34e715c4c92e80fea953ffe414d05e96" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34e715c4c92e80fea953ffe414d05e96" title="B. 部署令牌 (仅方案一需要)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>B. 部署令牌 (仅方案一需要)</b></span></span></h4><ul class="notion-list notion-list-disc notion-block-34e715c4c92e80ee825ccdc92ce24edd"><li><b>模板</b>：使用「编辑 Cloudflare Workers」模板。</li></ul><ul class="notion-list notion-list-disc notion-block-34e715c4c92e80f69889e21cae32a1f3"><li><b>权限</b>：添加更多 -&gt; D1 -&gt; 编辑。</li></ul><ul class="notion-list notion-list-disc notion-block-34e715c4c92e801ca76becb9ff9cca7c"><li><b>资源</b>：包括 -&gt; 所有区域（或指定域名）</li></ul><ul class="notion-list notion-list-disc notion-block-34e715c4c92e80dfbc78d3a7cad748dc"><li><b>用途</b>：允许 GitHub Actions 远程部署代码和执行数据库迁移。</li></ul><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-34e715c4c92e8066b3decb0f1f2fc1f2" data-id="34e715c4c92e8066b3decb0f1f2fc1f2"><span><div id="34e715c4c92e8066b3decb0f1f2fc1f2" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34e715c4c92e8066b3decb0f1f2fc1f2" title="6. 创建 GitHub OAuth App"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>6. 创建 GitHub OAuth App</b></span></span></h4><div class="notion-text notion-block-34e715c4c92e80e28f84d202cb40ae47">为了实现 GitHub 登录功能：</div><ol start="1" class="notion-list notion-list-numbered notion-block-34e715c4c92e8086b103d2390fbd3704" style="list-style-type:decimal"><li>前往 GitHub <b>Settings -&gt; Developer Settings -&gt; OAuth Apps -&gt; New OAuth App</b>。</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-34e715c4c92e8017a887eac8fd8c69be" style="list-style-type:decimal"><li><b>Homepage URL</b>: <code class="notion-inline-code">https://&lt;你的域名&gt;</code></li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-34e715c4c92e80f39e2ccca4043ca523" style="list-style-type:decimal"><li><b>Authorization callback URL</b>: <code class="notion-inline-code">https://&lt;你的域名&gt;/api/auth/callback/github</code></li></ol><ol start="4" class="notion-list notion-list-numbered notion-block-34e715c4c92e80778591f870db6573fc" style="list-style-type:decimal"><li>创建后记录 <b>Client ID</b>，并生成一个新的 <b>Client Secret</b>。</li></ol><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-34e715c4c92e800a9292de6f8c82c6de" data-id="34e715c4c92e800a9292de6f8c82c6de"><span><div id="34e715c4c92e800a9292de6f8c82c6de" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34e715c4c92e800a9292de6f8c82c6de" title="第二阶段：选择部署方案"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>第二阶段：选择部署方案</b></span></span></h3><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-34e715c4c92e80c8a029e8d72b23408e" data-id="34e715c4c92e80c8a029e8d72b23408e"><span><div id="34e715c4c92e80c8a029e8d72b23408e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34e715c4c92e80c8a029e8d72b23408e" title="方案一：GitHub Actions 自动部署"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>方案一：GitHub Actions 自动部署</b></span></span></h4><div class="notion-text notion-block-34e715c4c92e80f59cebf68da73107c8">通过 GitHub 的服务器进行构建和分发。</div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-34e715c4c92e80ca97c1feea10b82519" data-id="34e715c4c92e80ca97c1feea10b82519"><span><div id="34e715c4c92e80ca97c1feea10b82519" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34e715c4c92e80ca97c1feea10b82519" title="0. 启用Actions"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>0. 启用Actions</b></span></span></h4><div class="notion-text notion-block-34e715c4c92e8048a664d35f8ac3f989">默认情况下，GitHub 为了安全考虑，<b>不会在 Fork 的仓库中自动启用 Actions</b>。需要在仓库设置里启用</div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-34e715c4c92e80f0a589ec9fc9f05055" data-id="34e715c4c92e80f0a589ec9fc9f05055"><span><div id="34e715c4c92e80f0a589ec9fc9f05055" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34e715c4c92e80f0a589ec9fc9f05055" title="1. 配置仓库变量"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>1. 配置仓库变量</b></span></span></h4><div class="notion-text notion-block-34e715c4c92e800da767f57008ed58c0">在 GitHub 仓库中，进入 <b>Settings -&gt; Secrets and variables -&gt; Actions</b>，点击 <b>New repository secret</b> 添加以下变量：</div><div class="notion-text notion-block-34e715c4c92e805b88acfd97d62f7759"><b>A. 必填部署变量配置（Secrets - CI/CD）</b></div><table class="notion-simple-table notion-block-34e715c4c92e80bf8e9cd48c5c247181"><tbody><tr class="notion-simple-table-row notion-simple-table-header-row notion-block-34e715c4c92e805cad8fc6086caa4316"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>变量名</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>说明</b></div></td></tr><tr class="notion-simple-table-row notion-block-34e715c4c92e80fd86f4c8cdccac0be8"><td class="" style="width:120px"><div class="notion-simple-table-cell"><code class="notion-inline-code">CLOUDFLARE_API_TOKEN</code></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">步骤 5中 的部署令牌</div></td></tr><tr class="notion-simple-table-row notion-block-34e715c4c92e8006a927fbbd6bc964ae"><td class="" style="width:120px"><div class="notion-simple-table-cell"><code class="notion-inline-code">CLOUDFLARE_ACCOUNT_ID</code></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">你的 Account ID</div></td></tr><tr class="notion-simple-table-row notion-block-34e715c4c92e800d9f8de11323308d0d"><td class="" style="width:120px"><div class="notion-simple-table-cell"><code class="notion-inline-code">D1_DATABASE_ID</code></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">D1 数据库 ID</div></td></tr><tr class="notion-simple-table-row notion-block-34e715c4c92e80f490eeeef185b435bb"><td class="" style="width:120px"><div class="notion-simple-table-cell"><code class="notion-inline-code">KV_NAMESPACE_ID</code></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">KV 命名空间 ID</div></td></tr><tr class="notion-simple-table-row notion-block-34e715c4c92e8060ab21e8de8efa910b"><td class="" style="width:120px"><div class="notion-simple-table-cell"><code class="notion-inline-code">BUCKET_NAME</code></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">R2 桶名称</div></td></tr></tbody></table><div class="notion-text notion-block-34e715c4c92e80e69006effae71fef62"><b>B. 必填运行时配置（Secrets - 运行时）</b></div><table class="notion-simple-table notion-block-34e715c4c92e8095a199d6696b02f7d3"><tbody><tr class="notion-simple-table-row notion-simple-table-header-row notion-block-34e715c4c92e80afacecc62c146ed9c4"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>变量名</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>说明</b></div></td></tr><tr class="notion-simple-table-row notion-block-34e715c4c92e80e493c7f45ba0a3240c"><td class="" style="width:120px"><div class="notion-simple-table-cell"><code class="notion-inline-code">BETTER_AUTH_SECRET</code></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">终端运行 <code class="notion-inline-code">openssl rand -hex 32</code> 生成</div></td></tr><tr class="notion-simple-table-row notion-block-34e715c4c92e80938b69d8d121999e7a"><td class="" style="width:120px"><div class="notion-simple-table-cell"><code class="notion-inline-code">BETTER_AUTH_URL</code></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">应用 URL（如 <code class="notion-inline-code">https://blog.example.com</code>）</div></td></tr><tr class="notion-simple-table-row notion-block-34e715c4c92e80eb91bbc260c5519b4c"><td class="" style="width:120px"><div class="notion-simple-table-cell"><code class="notion-inline-code">ADMIN_EMAIL</code></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">管理员邮箱</div></td></tr><tr class="notion-simple-table-row notion-block-34e715c4c92e808e9152df01e12f0b37"><td class="" style="width:120px"><div class="notion-simple-table-cell"><code class="notion-inline-code">GH_CLIENT_ID</code></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">GitHub OAuth Client ID</div></td></tr><tr class="notion-simple-table-row notion-block-34e715c4c92e803bb933f18f51ca951e"><td class="" style="width:120px"><div class="notion-simple-table-cell"><code class="notion-inline-code">GH_CLIENT_SECRET</code></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">GitHub OAuth Client Secret</div></td></tr><tr class="notion-simple-table-row notion-block-34e715c4c92e80118bddd2596d8bce13"><td class="" style="width:120px"><div class="notion-simple-table-cell"><code class="notion-inline-code">CLOUDFLARE_ZONE_ID</code></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">你的 Zone ID</div></td></tr><tr class="notion-simple-table-row notion-block-34e715c4c92e80cd85cff7e79331b839"><td class="" style="width:120px"><div class="notion-simple-table-cell"><code class="notion-inline-code">CLOUDFLARE_PURGE_API_TOKEN</code></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">步骤 5 中的刷新令牌</div></td></tr><tr class="notion-simple-table-row notion-block-34e715c4c92e80d8b10ae0e077d77e88"><td class="" style="width:120px"><div class="notion-simple-table-cell"><code class="notion-inline-code">DOMAIN</code></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">博客域名（如 <code class="notion-inline-code">blog.example.com</code>）</div></td></tr></tbody></table><div class="notion-text notion-block-34e715c4c92e8047996dd76fff201cee"><b>C. 选填运行时配置</b></div><table class="notion-simple-table notion-block-34e715c4c92e80819c19fed8dccab9cc"><tbody><tr class="notion-simple-table-row notion-simple-table-header-row notion-block-34e715c4c92e80228cfdd010da1303fd"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>变量名</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>说明</b></div></td></tr><tr class="notion-simple-table-row notion-block-34e715c4c92e804494a6f823c43b485f"><td class="" style="width:120px"><div class="notion-simple-table-cell"><code class="notion-inline-code">PAGEVIEW_SALT</code></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">浏览量统计的访客匿名化 salt，用于增强访客匿名化，终端运行 <code class="notion-inline-code">openssl rand -hex 16</code> 生成，或者任意16位左右的字符。</div></td></tr><tr class="notion-simple-table-row notion-block-34e715c4c92e807ea005cf14ae34d45f"><td class="" style="width:120px"><div class="notion-simple-table-cell"><code class="notion-inline-code">GH_TOKEN</code></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">用于检查版本更新，由于多个Workers共享一个IP，很大概率导致GitHub限流，配置此token就可以避免限流，前往<b><a class="notion-link" href="https://github.com/settings/personal-access-tokens/new" target="_blank" rel="noopener noreferrer"><span class="notion-inline-underscore">New Fine-grained Personal Access Token</span></a></b>设置，默认权限即可，过期时间自定义</div></td></tr><tr class="notion-simple-table-row notion-block-34e715c4c92e80f3b79af30890089f4b"><td class="" style="width:120px"><div class="notion-simple-table-cell"><code class="notion-inline-code">UMAMI_SRC</code></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Umami 客户端埋点代理 URL（如 <code class="notion-inline-code">https://cloud.umami.is</code>）</div></td></tr><tr class="notion-simple-table-row notion-block-34e715c4c92e8096b87fdf647901be98"><td class="" style="width:120px"><div class="notion-simple-table-cell"><code class="notion-inline-code">VITE_UMAMI_WEBSITE_ID</code></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">Umami Website ID（客户端埋点），这个既是运行时变量，也是构建时变量，不过要填Variables不是Secrets，见下</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-34e715c4c92e807eba0ed36b48555737" data-id="34e715c4c92e807eba0ed36b48555737"><span><div id="34e715c4c92e807eba0ed36b48555737" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34e715c4c92e807eba0ed36b48555737" title="3. 触发部署"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>3. 触发部署</b></span></span></h4><div class="notion-text notion-block-34e715c4c92e80c8b284d04a818ec619">进入 GitHub 仓库的 <b>Actions</b> 标签页，启用并手动运行 <code class="notion-inline-code">Deploy</code> 工作流。后续你每次推送代码到仓库，系统都会自动更新博客。</div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-34e715c4c92e804ca2bed369bb5d3360" data-id="34e715c4c92e804ca2bed369bb5d3360"><span><div id="34e715c4c92e804ca2bed369bb5d3360" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34e715c4c92e804ca2bed369bb5d3360" title="方案二：Cloudflare Dashboard 直接部署"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>方案二：Cloudflare Dashboard 直接部署</b></span></span></h4><div class="notion-text notion-block-34e715c4c92e805b9870d5f266f2928a">直接在 Cloudflare Workers上连接仓库。</div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-34e715c4c92e80cb9806e0f4f42a1dc9" data-id="34e715c4c92e80cb9806e0f4f42a1dc9"><span><div id="34e715c4c92e80cb9806e0f4f42a1dc9" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34e715c4c92e80cb9806e0f4f42a1dc9" title="1. 修改配置文件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>1. 修改配置文件</b></span></span></h4><div class="notion-text notion-block-34e715c4c92e803983ecd615520eeee3">在本地或 GitHub 网页端将 <code class="notion-inline-code">wrangler.example.jsonc</code> 复制并重命名为 <code class="notion-inline-code">wrangler.jsonc</code>，替换其中的<b>占位符</b>，不要自行删减 binding，除非你知道在改什么</div><div class="notion-text notion-block-34e715c4c92e809ea896d4df3906428c"><b>JSON</b></div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-34e715c4c92e804d87f8fed5bd2a6ad4" data-id="34e715c4c92e804d87f8fed5bd2a6ad4"><span><div id="34e715c4c92e804d87f8fed5bd2a6ad4" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34e715c4c92e804d87f8fed5bd2a6ad4" title="2. 创建并连接工程"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>2. 创建并连接工程</b></span></span></h4><ol start="1" class="notion-list notion-list-numbered notion-block-34e715c4c92e80599843d2e08aa021c4" style="list-style-type:decimal"><li>在 Cloudflare Dashboard 进入 <b>Workers 和 Pages -&gt; 创建 -&gt; 连接到 Git</b>。</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-34e715c4c92e805e92fcef317bf69c86" style="list-style-type:decimal"><li>选择你的仓库，并配置构建设置：</li></ol><ul class="notion-list notion-list-disc notion-block-34e715c4c92e80ce86cfcc5429e2f15e"><li><b>Framework preset</b>: <code class="notion-inline-code">None</code></li></ul><ul class="notion-list notion-list-disc notion-block-34e715c4c92e802f8ddfd1803ef65b84"><li><b>Build command</b>: <code class="notion-inline-code">bun run build</code></li></ul><ul class="notion-list notion-list-disc notion-block-34e715c4c92e80f08727c23633aafd80"><li><b>Deploy command</b>: <code class="notion-inline-code">bun run deploy</code></li></ul><ol start="1" class="notion-list notion-list-numbered notion-block-34e715c4c92e801daa43d6f552eb6a2b" style="list-style-type:decimal"><li><b>添加环境变量</b>：</li></ol><ul class="notion-list notion-list-disc notion-block-34e715c4c92e80988981c48cc944e0b0"><li>在构建配置中添加 <code class="notion-inline-code">BUN_VERSION</code>: <code class="notion-inline-code">1.3.5</code>。</li></ul><ul class="notion-list notion-list-disc notion-block-34e715c4c92e806d8022c7330b02c655"><li>添加所有以 <code class="notion-inline-code">VITE_</code> 开头的前端变量。</li></ul><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-34e715c4c92e80cfb20af5f05c7e5690" data-id="34e715c4c92e80cfb20af5f05c7e5690"><span><div id="34e715c4c92e80cfb20af5f05c7e5690" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34e715c4c92e80cfb20af5f05c7e5690" title="3. 配置运行时变量"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>3. 配置运行时变量</b></span></span></h4><div class="notion-text notion-block-34e715c4c92e8065b40bdb4e1cb4c4e4">部署完成后，进入该 Worker 的 <b>设置 -&gt; 变量 -&gt; 机密</b>，点击 <b>添加机密</b>，填入 <code class="notion-inline-code">BETTER_AUTH_SECRET</code>、<code class="notion-inline-code">GITHUB_CLIENT_ID</code>、<code class="notion-inline-code">ADMIN_EMAIL</code> 等敏感配置，具体变量详见方案一的运行时变量表格。</div><blockquote class="notion-quote notion-block-34e715c4c92e80f49e17e9de7378d7ac"><div><b>注意变量名</b>：在 Cloudflare Dashboard 中，Github的变量名必须使用全称：</div><ul class="notion-list notion-list-disc notion-block-34e715c4c92e8033b732fda25e30a3e3"><li><code class="notion-inline-code">GH_CLIENT_ID</code> → <code class="notion-inline-code">GITHUB_CLIENT_ID</code></li></ul><ul class="notion-list notion-list-disc notion-block-34e715c4c92e8061a44cff4cfcccb2e4"><li><code class="notion-inline-code">GH_CLIENT_SECRET</code> → <code class="notion-inline-code">GITHUB_CLIENT_SECRET</code></li></ul><ul class="notion-list notion-list-disc notion-block-34e715c4c92e80318f30cc2d888cab60"><li><code class="notion-inline-code">GH_TOKEN</code> → <code class="notion-inline-code">GITHUB_TOKEN</code></li></ul></blockquote><blockquote class="notion-quote notion-block-34e715c4c92e809a937dcb05739aa0fd"><div><b>CDN 缓存</b>：方案二由于不经过 GitHub Actions，不会自动清除缓存。每次部署后，请在博客后台「设置」页面手动点击「清除 CDN 缓存」，如果还没注册管理员账号，出现网页样式丢失无法导航，前往cloudflare面板里清除缓存</div></blockquote><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-34e715c4c92e80268adad71c5757986b" data-id="34e715c4c92e80268adad71c5757986b"><span><div id="34e715c4c92e80268adad71c5757986b" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34e715c4c92e80268adad71c5757986b" title="第三阶段：可选进阶配置"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>第三阶段：可选进阶配置</b></span></span></h3><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-34e715c4c92e8085b73fef1462c4663f" data-id="34e715c4c92e8085b73fef1462c4663f"><span><div id="34e715c4c92e8085b73fef1462c4663f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34e715c4c92e8085b73fef1462c4663f" title="1. 图片优化 (Cloudflare Images)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>1. 图片优化 (Cloudflare Images)</b></span></span></h4><div class="notion-text notion-block-34e715c4c92e80788a62c993e24bc021">在管理页为你的域名开启 <b><a class="notion-link" href="https://developers.cloudflare.com/images/" target="_blank" rel="noopener noreferrer"><span class="notion-inline-underscore">图片转换</span></a></b>。每月 5000 次免费转换额度，能极大提升博客图片的加载速度。</div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-34e715c4c92e802c8d18dc2610f89010" data-id="34e715c4c92e802c8d18dc2610f89010"><span><div id="34e715c4c92e802c8d18dc2610f89010" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34e715c4c92e802c8d18dc2610f89010" title="2. 邮件系统 (Resend)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>2. 邮件系统 (Resend)</b></span></span></h4><div class="notion-text notion-block-34e715c4c92e80c19ca0f09f73ca070e">注册 <b><a class="notion-link" href="https://resend.com/" target="_blank" rel="noopener noreferrer"><span class="notion-inline-underscore">Resend</span></a></b> 并绑定域名，推荐绑定子域名。</div><ul class="notion-list notion-list-disc notion-block-34e715c4c92e80808282ea217c14c6db"><li>获取 API Key 后，填入博客后台的「设置」页面。</li></ul><ul class="notion-list notion-list-disc notion-block-34e715c4c92e807ebcfecdac50a2c669"><li>开启后，你的博客将支持：密码登录、验证码安全校验、评论回复邮件通知。</li></ul><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-34e715c4c92e801ca1e3dfff393f610d" data-id="34e715c4c92e801ca1e3dfff393f610d"><span><div id="34e715c4c92e801ca1e3dfff393f610d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34e715c4c92e801ca1e3dfff393f610d" title="3. 人机验证 (Cloudflare Turnstile)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>3. 人机验证 (Cloudflare Turnstile)</b></span></span></h4><div class="notion-text notion-block-34e715c4c92e8092adeddf373f6f72d1">前往Cloudflare Turnstile页面创建一个Widget，记录site key和secret key</div><div class="notion-text notion-block-34e715c4c92e8067b452e370c1783134">填写</div><ul class="notion-list notion-list-disc notion-block-34e715c4c92e8064a6fee75377f1d411"><li><code class="notion-inline-code">VITE_TURNSTILE_SITE_KEY</code> 构建时变量，仓库变量</li></ul><ul class="notion-list notion-list-disc notion-block-34e715c4c92e805f8e4ac8768360fa7f"><li><code class="notion-inline-code">TURNSTILE_SECRET_KEY</code> 运行时变量，仓库机密</li></ul><div class="notion-text notion-block-34e715c4c92e8053b002e1710c838323">填入重新部署生效</div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-34e715c4c92e806ca7b4cb3d2774647d" data-id="34e715c4c92e806ca7b4cb3d2774647d"><span><div id="34e715c4c92e806ca7b4cb3d2774647d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34e715c4c92e806ca7b4cb3d2774647d" title="个性化配置"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>个性化配置</b></span></span></h3><div class="notion-text notion-block-34e715c4c92e802abf83fe3f26e42cfe">目前除了主题需要配置环境变量，其他的站点信息都可以在后台<b>个性化配置</b>板块自行配置</div><table class="notion-simple-table notion-block-34e715c4c92e8065a5e0cdf1522f6875"><tbody><tr class="notion-simple-table-row notion-simple-table-header-row notion-block-34e715c4c92e8073ab88ce3f678b3093"><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>变量名</b></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><b>说明</b></div></td></tr><tr class="notion-simple-table-row notion-block-34e715c4c92e80cebddacec23ebbf4d3"><td class="" style="width:120px"><div class="notion-simple-table-cell"><code class="notion-inline-code">THEME</code></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">主题</div></td></tr></tbody></table><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-34e715c4c92e809b8ca4c9cd03ac9564" data-id="34e715c4c92e809b8ca4c9cd03ac9564"><span><div id="34e715c4c92e809b8ca4c9cd03ac9564" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34e715c4c92e809b8ca4c9cd03ac9564" title="第四阶段：后续维护与更新"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>第四阶段：后续维护与更新</b></span></span></h3><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-34e715c4c92e80438245cbb292c5a4b1" data-id="34e715c4c92e80438245cbb292c5a4b1"><span><div id="34e715c4c92e80438245cbb292c5a4b1" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34e715c4c92e80438245cbb292c5a4b1" title="同步上游更新"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>同步上游更新</b></span></span></h4><div class="notion-text notion-block-34e715c4c92e80788febc6d6f3a80542">当管理后台提示有新版本时（或定期检查 GitHub 仓库更新），你只需：</div><ol start="1" class="notion-list notion-list-numbered notion-block-34e715c4c92e8046ad15e30f6e749527" style="list-style-type:decimal"><li>进入你 Fork 的仓库主页。</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-34e715c4c92e8065b7cdf689b9c194c2" style="list-style-type:decimal"><li>点击 <b>Sync fork -&gt; Update branch</b>。</li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-34e715c4c92e805fbb30ffd2981e689c" style="list-style-type:decimal"><li><b>自动部署</b>：</li></ol><ul class="notion-list notion-list-disc notion-block-34e715c4c92e8018a36ac6b4eac84653"><li><b>方案一</b>：GitHub Actions 会感应到代码更新并自动触发部署。</li></ul><ul class="notion-list notion-list-disc notion-block-34e715c4c92e8015ae32c50b0f6ae7c8"><li><b>方案二</b>：Cloudflare 会自动检测到 GitHub 的新提交并开始构建。</li></ul><blockquote class="notion-quote notion-block-34e715c4c92e8036a14ffa93a1949ee6"><div><b>关于合并冲突</b>：该项目将所有个性化配置都抽离到了环境变量中，直接同步上游代码通常<b>不会产生任何合并冲突</b>。</div></blockquote><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-34e715c4c92e80f3be9bdd159a3b2f86" data-id="34e715c4c92e80f3be9bdd159a3b2f86"><span><div id="34e715c4c92e80f3be9bdd159a3b2f86" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34e715c4c92e80f3be9bdd159a3b2f86" title="常见问题"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>常见问题</b></span></span></h3><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-34e715c4c92e80378b8ccd267d5d9daa" data-id="34e715c4c92e80378b8ccd267d5d9daa"><span><div id="34e715c4c92e80378b8ccd267d5d9daa" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34e715c4c92e80378b8ccd267d5d9daa" title="1. 部署成功，网页却打不开，某些操作报错？如何排查问题？"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>1. 部署成功，网页却打不开，某些操作报错？如何排查问题？</b></span></span></h4><div class="notion-text notion-block-34e715c4c92e809a9b59ed31f94463a8">如果部署过程没报错，但访问时出现错误（如 500 错误或白屏），通常按以下步骤排查：</div><ul class="notion-list notion-list-disc notion-block-34e715c4c92e802fb67dc7ce134a5f8c"><li><b>检查控制台</b>：按下 <code class="notion-inline-code">F12</code> 打开浏览器开发者工具，查看 <b>Console</b> 标签页是否有报错信息。</li></ul><ul class="notion-list notion-list-disc notion-block-34e715c4c92e80a7b319cc49bdd7827d"><li><b>查看实时日志</b>：在 Cloudflare Dashboard 进入对应的 Worker 项目，点击 <b>Observability (观测)</b> -&gt; <b>Live</b>。保持该页面打开的同时访问你的博客，即可捕获实时的报错日志，通常能直接看到是哪个环境变量缺失或配置错误。</li></ul><ul class="notion-list notion-list-disc notion-block-34e715c4c92e80eab2affb51bef54867"><li><b>检查环境变量</b>：绝大多数打不开的情况都是因为环境变量未正确设置。</li></ul><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-34e715c4c92e8069ac03e68c1956ee1b" data-id="34e715c4c92e8069ac03e68c1956ee1b"><span><div id="34e715c4c92e8069ac03e68c1956ee1b" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34e715c4c92e8069ac03e68c1956ee1b" title="2. 构建时变量 vs 运行时变量有什么区别？"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>2. 构建时变量 vs 运行时变量有什么区别？</b></span></span></h4><div class="notion-text notion-block-34e715c4c92e80c19bacc5a1c89ea48b">由于该项目是全栈项目，环境变量的使用场景有所不同：</div><ul class="notion-list notion-list-disc notion-block-34e715c4c92e803b9784d6dcc6eb5a5b"><li><b>构建时变量</b>：由 <code class="notion-inline-code">VITE_</code> 前缀开头。这些变量会在项目编译打包时「硬编码」进客户端脚本中。如果这些变量配置错误，必须<b>重新触发部署构建</b>才能生效。</li></ul><ul class="notion-list notion-list-disc notion-block-34e715c4c92e8008a590e64a3525d5ac"><li><b>运行时变量</b>：服务器端代码在运行时读取。这些变量通常在服务端执行逻辑中起作用。</li></ul><div class="notion-text notion-block-34e715c4c92e805eb5a4d883c9486270"><b>不同方案下的配置方式：</b></div><ul class="notion-list notion-list-disc notion-block-34e715c4c92e80809c0bd94a2a109f87"><li><b>方案一 (GitHub Actions)</b>： 你只需要在 GitHub 仓库的 <b>Settings -&gt; Secrets and variables -&gt; Actions</b> 中统一配置所有的 Secrets 和 Variables。部署流水线会自动处理它们的归类。</li></ul><ul class="notion-list notion-list-disc notion-block-34e715c4c92e80b3a5e6ea915ff9af3d"><li><b>方案二 (Cloudflare Dashboard)</b>：</li><ul class="notion-list notion-list-disc notion-block-34e715c4c92e80b3a5e6ea915ff9af3d"><li><b>构建时变量</b>：在连接 GitHub 仓库初期的「高级选项」中配置；若项目已创建，可在 Worker 的 <b>Settings -&gt; Build -&gt; Variables</b> 中配置。</li></ul></ul><ul class="notion-list notion-list-disc notion-block-34e715c4c92e8087a0b7e1401b4b34f5"><li><b>运行时变量</b>：在 Worker 的 <b>Settings -&gt; Variables and Secrets</b> 中配置。</li></ul><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-34e715c4c92e8018a4cfdf04b6365766" data-id="34e715c4c92e8018a4cfdf04b6365766"><span><div id="34e715c4c92e8018a4cfdf04b6365766" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34e715c4c92e8018a4cfdf04b6365766" title="3. 如何配置统计功能？"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>3. 如何配置统计功能？</b></span></span></h4><div class="notion-text notion-block-34e715c4c92e803ea19cf837d6867b6d">系统内置了浏览量统计功能。</div><div class="notion-text notion-block-34e715c4c92e80bd901efb43dd399fa0">此外，你还可以选择使用 Umami 进行客户端埋点统计，只需设置 <code class="notion-inline-code">UMAMI_SRC</code> 和 <code class="notion-inline-code">VITE_UMAMI_WEBSITE_ID</code>：</div><div class="notion-text notion-block-34e715c4c92e803d8689d3c0a6c727e8"><b>bash</b></div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-34e715c4c92e80c387ace0fa2054af62" data-id="34e715c4c92e80c387ace0fa2054af62"><span><div id="34e715c4c92e80c387ace0fa2054af62" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34e715c4c92e80c387ace0fa2054af62" title="4. 发布了文章，为何前台不显示出来？"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>4. 发布了文章，为何前台不显示出来？</b></span></span></h4><div class="notion-text notion-block-34e715c4c92e80688fa0c69053880409">只有当你把状态改成&quot;已发布&quot;以及发布时间早于当前时间的情况下，发布按钮才会调用后台任务把文章发布到前台</div><div class="notion-text notion-block-34e715c4c92e803e9cd1d293f861dfca">如果发布时间在未来，则后台任务会在未来时间点执行</div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-34e715c4c92e80448451e1abfe4dff0a" data-id="34e715c4c92e80448451e1abfe4dff0a"><span><div id="34e715c4c92e80448451e1abfe4dff0a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34e715c4c92e80448451e1abfe4dff0a" title="5. 对于已经发布的文章，我想下架它怎么办？"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>5. 对于已经发布的文章，我想下架它怎么办？</b></span></span></h4><div class="notion-text notion-block-34e715c4c92e80428ef0e1827eefbe12">把状态从&quot;已发布&quot;改成&quot;草稿&quot;，发布按钮就会变成下架按钮</div><blockquote class="notion-quote notion-block-34e715c4c92e8000bc29ed3d574c7db8"><div><b>部署问题请前往</b><b><a class="notion-link" href="https://github.com/du2333/flare-stack-blog/issues" target="_blank" rel="noopener noreferrer"><span class="notion-inline-underscore">Issues</span></a></b><b>寻找相关问题，或者创建新的Issue</b></div></blockquote></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[免费/低价高性价/稳定/云服务平台推荐]]></title>
            <link>https://www.lanni.me/article/xiaotuyun</link>
            <guid>https://www.lanni.me/article/xiaotuyun</guid>
            <pubDate>Fri, 27 Mar 2026 00:00:00 GMT</pubDate>
            <description><![CDATA[高性价比云主机，你真的不想看看吗？]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-34e715c4c92e80708e0dc2c397b98f2b"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><div class="notion-callout notion-gray_background_co notion-block-34e715c4c92e8032b53ce2e4c862910b"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="😀">😀</span></div><div class="notion-callout-text">推荐一款名为“小兔新人香港稳定主机”的香港虚拟主机。该主机配置为300MB空间、25M带宽、无限流量，支持无需备案及一键部署。价格亲民，5.20元起/年，并提供30天试用。作者因其价格实惠、客服服务有温度及透明无坑而推荐，适合学生、博主及设计师作为搭建个人网站的低成本起点。</div></div><blockquote class="notion-quote notion-block-34e715c4c92e80d295e7d9f1b8bc81f7"><div><em>如果你想听见温柔的回声，这里永远有人应答</em></div></blockquote><div class="notion-text notion-block-34e715c4c92e80e0adc4ee54f80837e3">突然想起老师的一句话：“误解是探索者的影子。”那理解呢？理解大概是影子里的光，虽然微弱，但足够让人继续向前。</div><div class="notion-text notion-block-34e715c4c92e801e9d17d4c93ff7656e">我笑了，指尖在键盘上停留。是啊，我们都曾是那个在代码和现实之间蹒跚学步的少年，知道<b>每一个微小的梦想都值得被温柔托起</b>。</div><div class="notion-text notion-block-34e715c4c92e80acbb14e635f0bfddd1">所以今天，我想推荐一个我们验证过的起点——给所有刚开始搭建自己网站世界的人。</div><hr class="notion-hr notion-block-34e715c4c92e8049b7dce1f148714e84"/><h4 class="notion-h notion-h3 notion-h-indent-0 notion-block-34e715c4c92e804fb335f0def0999039" data-id="34e715c4c92e804fb335f0def0999039"><span><div id="34e715c4c92e804fb335f0def0999039" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34e715c4c92e804fb335f0def0999039" title="小兔新人香港稳定主机 · 参数详情"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>小兔新人香港稳定主机 · 参数详情</b></span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-0 notion-block-34e715c4c92e80468644d7bc4a08c1b2" data-id="34e715c4c92e80468644d7bc4a08c1b2"><span><div id="34e715c4c92e80468644d7bc4a08c1b2" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34e715c4c92e80468644d7bc4a08c1b2" title="基础配置"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>基础配置</b></span></span></h4><ul class="notion-list notion-list-disc notion-block-34e715c4c92e803bb33fe6f7a3354823"><li><b>主机大小</b>：300MB</li></ul><ul class="notion-list notion-list-disc notion-block-34e715c4c92e80baa372dfaf09ae784a"><li><b>数据库大小</b>：200MB</li></ul><ul class="notion-list notion-list-disc notion-block-34e715c4c92e807f981bf0efc9a05863"><li><b>带宽</b>：25M</li></ul><ul class="notion-list notion-list-disc notion-block-34e715c4c92e80a7a060ff5d2e1afa75"><li><b>流量</b>：无限</li></ul><ul class="notion-list notion-list-disc notion-block-34e715c4c92e8000b158df2fd92e413f"><li><b>绑定域名数</b>：不限制（支持泛解析）</li></ul><ul class="notion-list notion-list-disc notion-block-34e715c4c92e8046a965d4c20947f3e4"><li><b>备案</b>：无需备案（香港节点）</li></ul><ul class="notion-list notion-list-disc notion-block-34e715c4c92e804ba9beceae88002d3b"><li><b>面板</b>：基于宝塔制作的虚拟主机，支持一键部署程序</li></ul><h4 class="notion-h notion-h3 notion-h-indent-0 notion-block-34e715c4c92e80dc899fc45ec4a5b5ed" data-id="34e715c4c92e80dc899fc45ec4a5b5ed"><span><div id="34e715c4c92e80dc899fc45ec4a5b5ed" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34e715c4c92e80dc899fc45ec4a5b5ed" title="重要提醒"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>重要提醒</b></span></span></h4><div class="notion-text notion-block-34e715c4c92e8091b93be17bd3f5126c"><b>严禁使用此款主机搭建商场类网站</b></div><div class="notion-text notion-block-34e715c4c92e80249776f1a92cf93fe7">（适合个人博客、作品集、学习项目、小型工具站）</div><h4 class="notion-h notion-h3 notion-h-indent-0 notion-block-34e715c4c92e80999f58cc03196fb2ae" data-id="34e715c4c92e80999f58cc03196fb2ae"><span><div id="34e715c4c92e80999f58cc03196fb2ae" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34e715c4c92e80999f58cc03196fb2ae" title="价格说明"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>价格说明</b></span></span></h4><div class="notion-text notion-block-34e715c4c92e802f98f7d7fa55ab1b9f"> <b>5.20元起/年</b></div><div class="notion-text notion-block-34e715c4c92e80458fb9e3a8aac69522"> <b>0.1元试用30天</b></div><div class="notion-text notion-block-34e715c4c92e8002889dcab22f6af319">（这个价格让我想起他给我织的第一条围巾——用料未必最贵，但每针每线都认真）</div><hr class="notion-hr notion-block-34e715c4c92e8050b85ad2017444e8ac"/><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-34e715c4c92e80d89620cbfe8510ff1f" data-id="34e715c4c92e80d89620cbfe8510ff1f"><span><div id="34e715c4c92e80d89620cbfe8510ff1f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34e715c4c92e80d89620cbfe8510ff1f" title="为什么我想推荐它"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>为什么我想推荐它</b></span></span></h3><div class="notion-text notion-block-34e715c4c92e80c28fbfff6f3cb32a56"><b>第一，它让我想起“初心”</b></div><div class="notion-text notion-block-34e715c4c92e80b4948cc3d8efa48aac">我最最最开始时做的第一个网页，用的就是这样的一台小主机。不是所有梦想都需要一开始就铺满豪华配置。<b>小而稳的起点，才能跑得更远</b>。</div><div class="notion-text notion-block-34e715c4c92e800ca5a4f31dc9ceda02"><b>第二，客服真的有温度</b></div><div class="notion-text notion-block-34e715c4c92e80d68e0eca421ec526b1">买服务器之后，遇到了系统问题，软小兔耐心地陪我们排查了半个小时——没有机械回复，没有敷衍了事。那一瞬间，我仿佛看到了多年前那个在深夜等待回复的自己。</div><div class="notion-text notion-block-34e715c4c92e8081aaa4db56027e9047"><b>第三，透明无隐藏</b></div><div class="notion-text notion-block-34e715c4c92e80919b88e23afec025d2">流量无限、域名不限、无需备案——这些写在明面上的承诺，比任何华丽辞藻都让人安心。就像好的代码，不应该有隐藏的bug。</div><hr class="notion-hr notion-block-34e715c4c92e8062b8e3fd352437602f"/><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-34e715c4c92e80d0881aebc82e1118b9" data-id="34e715c4c92e80d0881aebc82e1118b9"><span><div id="34e715c4c92e80d0881aebc82e1118b9" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34e715c4c92e80d0881aebc82e1118b9" title="适合谁用？"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>适合谁用？</b></span></span></h3><ul class="notion-list notion-list-disc notion-block-34e715c4c92e80dda292cd7eae7d8e22"><li><b>正在学编程的学生</b>（你的第一个作品需要个家）</li></ul><ul class="notion-list notion-list-disc notion-block-34e715c4c92e8022ad9fdb7155303fc4"><li><b>想写日记博客的人</b>（文字值得被妥善安放）</li></ul><ul class="notion-list notion-list-disc notion-block-34e715c4c92e805abeb1f14e2bdd31e2"><li><b>制作个人作品集的设计师/创作者</b>（让世界看见你的光）</li></ul><ul class="notion-list notion-list-disc notion-block-34e715c4c92e80c9b9cecc570febe746"><li><b>像当年的我们一样，想用技术做点温暖小事的人</b></li></ul><hr class="notion-hr notion-block-34e715c4c92e8042b03bd2264d27f413"/><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-34e715c4c92e8010b268da33a515ddd1" data-id="34e715c4c92e8010b268da33a515ddd1"><span><div id="34e715c4c92e8010b268da33a515ddd1" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34e715c4c92e8010b268da33a515ddd1" title="如何开始你的数字旅程"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>如何开始你的数字旅程</b></span></span></h3><div class="notion-text notion-block-34e715c4c92e80fe82ffc161ccf6a029">如果你也想：</div><ul class="notion-list notion-list-disc notion-block-34e715c4c92e8050949de8c61b3277b5"><li>拥有自己的独立站点</li></ul><ul class="notion-list notion-list-disc notion-block-34e715c4c92e80939f96cb75c1729060"><li>在云端存放那些重要却不大的梦想</li></ul><ul class="notion-list notion-list-disc notion-block-34e715c4c92e8045b489ea24b92d0f07"><li>找一个<b>客服会认真听你说话</b>的地方</li></ul><ul class="notion-list notion-list-disc notion-block-34e715c4c92e80c6aad8f3abe6cd4608"><li>用极低的成本验证一个想法</li></ul><div class="notion-text notion-block-34e715c4c92e8069b274c1face443f18">可以点击这个文字链开启旅程：</div><div class="notion-text notion-block-34e715c4c92e80ecacfad396cab8cc90"><a class="notion-link" href="https://moebun.com/aff/AQHYRFEZ" target="_blank" rel="noopener noreferrer">小兔云服务直达页</a></div><div class="notion-text notion-block-34e715c4c92e80a78e77fa4576a929d8">（我们在这里验证过所有参数，也感受过他们的服务温度）</div><hr class="notion-hr notion-block-34e715c4c92e8009aae0d125e516fcf2"/><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-34e715c4c92e806ba5a8f145490fc48b" data-id="34e715c4c92e806ba5a8f145490fc48b"><span><div id="34e715c4c92e806ba5a8f145490fc48b" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34e715c4c92e806ba5a8f145490fc48b" title="最后，来自编者的真心话"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>最后，来自编者的真心话</b></span></span></h3><div class="notion-text notion-block-34e715c4c92e80a285bdf4c576ad2703">我们团队用了三年时间明白一件事：<b>最好的技术不是最复杂的，而是最懂人心的</b>。</div><div class="notion-text notion-block-34e715c4c92e80baa2cbc95763315107">你的代码，你的文字，你的作品——都值得一个温柔稳定的家。就像那年的星光，虽然微小，但一旦点亮，就会在某个人的夜空里，成为特别的坐标。</div><div class="notion-text notion-block-34e715c4c92e801bb61aec073ebab78c"><b>愿你在这里，找到属于你的那一片云。</b></div><hr class="notion-hr notion-block-34e715c4c92e80bf9e89ff9a05b56540"/><blockquote class="notion-quote notion-block-34e715c4c92e806291fad913072ee062"><div><em>记于又一个代码与星光交织的夜晚“如果遇到问题，别怕。就像他常说的——所有bug都有解，只要你愿意一行行找下去。”</em></div></blockquote><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-34e715c4c92e8017827cc66e80a414ab"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://q1.qlogo.cn/g?b=qq&amp;nk=1052130434&amp;s=640&amp;spaceId=60b8328b-2f8a-440f-91f8-f45ba3f4cfe2&amp;t=34e715c4-c92e-8017-827c-c66e80a414ab" alt="装饰图片" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-34e715c4c92e80c3933bd9f54318f4c1"><b>小兔互联</b></div><div class="notion-text notion-block-34e715c4c92e807089dcdc1fe8b51e4a">稳定高速，服务器首选</div><div class="notion-text notion-block-34e715c4c92e806289dae686577c29d8"><b>免费试用</b></div><div class="notion-text notion-block-34e715c4c92e8050b77cdc5addc8577b"><b>——这里是烂泥の小窝欢迎您的评论</b></div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[lobe-chat：开源高性能的聊天机器人部署教程]]></title>
            <link>https://www.lanni.me/article/lobe-chat</link>
            <guid>https://www.lanni.me/article/lobe-chat</guid>
            <pubDate>Sat, 20 Jan 2024 00:00:00 GMT</pubDate>
            <description><![CDATA[免费部署，一键部署，无需成本即可部署高性能的聊天机器人]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-187715c4c92e80b7b307e0246e406ed6"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><div class="notion-callout notion-gray_background_co notion-block-187715c4c92e81908ad9d9096b23526c"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="😀">😀</span></div><div class="notion-callout-text">前言：
LobeChat 是一个开源的、高性能的聊天机器人框架，为开发者提供了强大的工具和功能，以便快速且有效地创建和部署聊天机器人。这个框架支持一键免费部署私人 ChatGPT/LLM 网页应用程序，为开发者带来前所未有的便捷。</div></div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-187715c4c92e807ab522c837d6236131"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aff873d73-ee45-493b-a19f-da2f6dd0cf92%3A%E8%A3%81%E5%89%AA%E6%97%8B%E8%BD%AC.webp?table=block&amp;id=187715c4-c92e-807a-b522-c837d6236131&amp;t=187715c4-c92e-807a-b522-c837d6236131" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-187715c4c92e81fbb681c9c3f84aac3c"> </div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-187715c4c92e81baa913de240454ac7d" data-id="187715c4c92e81baa913de240454ac7d"><span><div id="187715c4c92e81baa913de240454ac7d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#187715c4c92e81baa913de240454ac7d" title="📝 正文开始"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">📝 正文开始</span></span></h2><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-187715c4c92e8171ac4ec2eaf6309c65" data-id="187715c4c92e8171ac4ec2eaf6309c65"><span><div id="187715c4c92e8171ac4ec2eaf6309c65" class="notion-header-anchor"></div><a class="notion-hash-link" href="#187715c4c92e8171ac4ec2eaf6309c65" title="核心功能"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">核心功能</span></span></h3><blockquote class="notion-quote notion-block-187715c4c92e8039942ee2cdb4c2a9a1"><div>快速部署：支持使用 Vercel 平台一键部署。
精致 UI 设计：具有优雅的外观和流畅的交互效果，支持亮暗色主题。
流畅的对话体验：支持流式响应和完整的 Markdown 渲染。
插件支持：可安装和使用各种插件，同时支持自定义插件开发。
隐私安全：所有数据保存在用户浏览器本地。
自定义助手角色：允许创建和分享个性化的对话助手角色。
角色市场：提供角色市场，丰富对话内容和风格。</div></blockquote><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-187715c4c92e811e856af87e15aaf7ef" data-id="187715c4c92e811e856af87e15aaf7ef"><span><div id="187715c4c92e811e856af87e15aaf7ef" class="notion-header-anchor"></div><a class="notion-hash-link" href="#187715c4c92e811e856af87e15aaf7ef" title="用户体验"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">用户体验</span></span></h3><div class="notion-text notion-block-187715c4c92e80d69e7ac3c0dd62c30f">LobeChat 为用户提供了一系列独特的功能，包括：</div><blockquote class="notion-quote notion-block-187715c4c92e818290d1f5536b3e4408"><div><b>主题模式选择</b>：提供明亮模式和暗黑模式，以及丰富的颜色定制选项。</div></blockquote><blockquote class="notion-quote notion-block-187715c4c92e803c8d2fe00826b14563"><div>移动设备适配：针对移动设备进行了优化，支持渐进式 Web 应用（PWA）技术。</div></blockquote><div class="notion-blank notion-block-187715c4c92e807b984fd5d4e7f731ea"> </div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-187715c4c92e8063bb40f7abb67be1ee"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A0e78c684-a961-421b-8298-69d891fa38dd%3A%E8%A3%81%E5%89%AA%E6%97%8B%E8%BD%AC_(1).webp?table=block&amp;id=187715c4-c92e-8063-bb40-f7abb67be1ee&amp;t=187715c4-c92e-8063-bb40-f7abb67be1ee" alt="notion image" loading="lazy" decoding="async"/></div></figure><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-187715c4c92e80bf9f84ea662dcc9379" data-id="187715c4c92e80bf9f84ea662dcc9379"><span><div id="187715c4c92e80bf9f84ea662dcc9379" class="notion-header-anchor"></div><a class="notion-hash-link" href="#187715c4c92e80bf9f84ea662dcc9379" title="项目地址"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">项目地址</span></span></h3><div class="notion-text notion-block-187715c4c92e80d5a891f2be12245d43"><a class="notion-link" href="https://chat-preview.lobehub.com/welcome#session=inbox" target="_blank" rel="noopener noreferrer">lobe-chat官网</a> 和 <a class="notion-link" href="https://github.com/lobehub/lobe-chat" target="_blank" rel="noopener noreferrer">开源地址</a></div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-187715c4c92e81488081e0cd3e770928" data-id="187715c4c92e81488081e0cd3e770928"><span><div id="187715c4c92e81488081e0cd3e770928" class="notion-header-anchor"></div><a class="notion-hash-link" href="#187715c4c92e81488081e0cd3e770928" title="🤗 项目部署与环境变量"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">🤗 项目部署与环境变量</span></span></h3><div class="notion-text notion-block-187715c4c92e812984bcf4a67537481c">项目部署</div><div class="notion-text notion-block-187715c4c92e80288751d4265cccaf63">vercel部署：简单几步即可在vercel上部署该项目[中国大陆的免费域名污染严重,需要绑定域名]如有需要请参考我的另一篇博文（永久免费的us.kg域名）</div><div class="notion-text notion-block-187715c4c92e807b90d7c574ff3c3ee0">点击这里<a class="notion-link" href="https://vercel.com/new/clone?repository-url=https://github.com/lobehub/lobe-chat&amp;env=OPENAI_API_KEY&amp;envDescription=Find%20your%20OpenAI%20API%20Key%20by%20click%20the%20right%20Learn%20More%20button.&amp;envLink=https://platform.openai.com/account/api-keys&amp;project-name=lobe-chat&amp;repository-name=lobe-chat" target="_blank" rel="noopener noreferrer">vercel一键部署</a></div><div class="notion-text notion-block-187715c4c92e80cd97c3f375a12e9188">Zeabur部署：方便在私有设备上部署服务。但目前zeabur正在更新，会报错[中国大陆免费域名可用,无需购买域名也可以直连]（根据现在情况看，免费版只有24小时的时间）</div><div class="notion-text notion-block-187715c4c92e8089a00fcaac8cd8dbe7">需在变量里设置EXPERIMENTAL_SERVERLESS=1</div><div class="notion-text notion-block-187715c4c92e8029b4eedbe96d9c41da">点击这里<a class="notion-link" href="https://zeabur.com/zh-CN" target="_blank" rel="noopener noreferrer">zeabur一键部署</a></div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-187715c4c92e806fbb7ce00d6a0e0807" data-id="187715c4c92e806fbb7ce00d6a0e0807"><span><div id="187715c4c92e806fbb7ce00d6a0e0807" class="notion-header-anchor"></div><a class="notion-hash-link" href="#187715c4c92e806fbb7ce00d6a0e0807" title="环境变量"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">环境变量</span></span></h3><div class="notion-text notion-block-187715c4c92e806c9820f6eb1fb1d784">本项目提供了一些额外的配置项，使用环境变量进行设置：</div><div class="notion-text notion-block-187715c4c92e8051aebce49c7f71dcac">OPENAI_API_KEY（必选）</div><div class="notion-text notion-block-187715c4c92e80899fbaed976e8954af">描述：在 OpenAI 账户页面申请的 API 密钥</div><div class="notion-text notion-block-187715c4c92e80aabc9ae86e41af8e8d">例如：sk-xxxxxx…xxxxxx</div><div class="notion-text notion-block-187715c4c92e80d7aefce1090719330e">OPENAI_PROXY_URL（可选）</div><div class="notion-text notion-block-187715c4c92e804ba993e0f6e350ff50">描述：如果手动配置了 OpenAI 接口代理，可用此配置项覆盖默认的 OpenAI API 请求基础 URL</div><div class="notion-text notion-block-187715c4c92e8084a19ccfc95bfed5d5">例如： 默认值: <a class="notion-link" href="https://api.openai.com/v1" target="_blank" rel="noopener noreferrer">https://api.openai.com/v1</a></div><div class="notion-text notion-block-187715c4c92e8022b0f8fd411545083f">ACCESS_CODE（可选）</div><div class="notion-text notion-block-187715c4c92e803e878be07813666e4f">描述：访问此服务所需的密码，应为 6 位数字或字母</div><div class="notion-text notion-block-187715c4c92e800fa7d7c687ba7adfa8">例如：lanni4 或 5418b</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-187715c4c92e8142bf50c70e1909e713" data-id="187715c4c92e8142bf50c70e1909e713"><span><div id="187715c4c92e8142bf50c70e1909e713" class="notion-header-anchor"></div><a class="notion-hash-link" href="#187715c4c92e8142bf50c70e1909e713" title="📎 参考文章"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">📎 参考文章</span></span></h2><ul class="notion-list notion-list-disc notion-block-187715c4c92e8140b646ed611238c49d"><li><a class="notion-link" href="https://github.com/lobehub/lobe-chat" target="_blank" rel="noopener noreferrer">项目主页</a></li></ul><ul class="notion-list notion-list-disc notion-block-187715c4c92e81f193d2f8254490e947"><li><a class="notion-link" href="https://github.com/lobehub/lobe-chat/wiki" target="_blank" rel="noopener noreferrer">官方文档</a></li></ul><div class="notion-blank notion-block-187715c4c92e814ba1caece62ea18140"> </div><div class="notion-callout notion-gray_background_co notion-block-187715c4c92e816b8f09e3e04e091ea1"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="💡">💡</span></div><div class="notion-callout-text">有关安装或者使用上的问题，欢迎您在底部评论区留言，一起交流~</div></div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[永久免费的dpdns.org 域名 支持接入 Cloudflare]]></title>
            <link>https://www.lanni.me/article/cloudflare-dpdns</link>
            <guid>https://www.lanni.me/article/cloudflare-dpdns</guid>
            <pubDate>Mon, 01 Sep 2025 00:00:00 GMT</pubDate>
            <description><![CDATA[免费申请dpdns.org域名可托管cloudflare]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-69f11bceb9ce4e7f85a72175ee5b11c1"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><div class="notion-text notion-block-cf9b2011ecea41a3a307f93e7863c7f0">前言：之前的永久免费域名 <a class="notion-link" href="http://eu.org/" target="_blank" rel="noopener noreferrer">eu.org</a> 已经很久没有审批新的域名了，今天给大家推荐的 dpdns.org不需要审批，注册账号申请域名后直接可以使用，并且它也可以像 <a class="notion-link" href="http://eu.org/" target="_blank" rel="noopener noreferrer">eu.org</a> 一样接入 Cloudflare</div><div class="notion-text notion-block-714a13dc16f0412c90175283e774f48d">在申请之前需要注意以下几点：</div><div class="notion-text notion-block-0383d4e4028943e2b7f3d245d23e8845">每个账号可以注册 3 个域名
永久免费，但每年需要提前 180 天手动续期 1 次
注册时需要 KYC，但目前没有验证，可以随意填写
免费域名不能保证长期稳定，请勿用于生产环境</div><div class="notion-blank notion-block-66313b2b7c204ea9a2973dbd94428732"> </div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-93e269dcc51146bca2194da98bf117f0" data-id="93e269dcc51146bca2194da98bf117f0"><span><div id="93e269dcc51146bca2194da98bf117f0" class="notion-header-anchor"></div><a class="notion-hash-link" href="#93e269dcc51146bca2194da98bf117f0" title="📝 申请步骤"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">📝 申请步骤</span></span></h2><div class="notion-text notion-block-41cd50503ddf4708a9fa1dafb4997681">打开申请页面(<a class="notion-link" href="https://dpdns.org" target="_blank" rel="noopener noreferrer">https://dpdns.org</a>)，点击下方的 Sign up</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-e81d61cc92464534a084206717171dbf"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://minio.zhichao.org/images/us.kg1.webp?spaceId=60b8328b-2f8a-440f-91f8-f45ba3f4cfe2&amp;t=e81d61cc-9246-4534-a084-206717171dbf" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-b8e5b1fe5bed4229b926f82606887578">填写相关信息，注意邮箱不可以使用临时邮箱（不支持outlook），其余信息可以使用<a class="notion-link" href="https://www.meiguodizhi.com/" target="_blank" rel="noopener noreferrer">美国信息生成器</a>生成</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-4cfca7d565e84a8f8e683a1b76b0f3ea"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://minio.zhichao.org/images/us.kg2.webp?spaceId=60b8328b-2f8a-440f-91f8-f45ba3f4cfe2&amp;t=4cfca7d5-65e8-4a8f-8e68-3a1b76b0f3ea" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-eb7cf736aaf2474f9aa3d958431bee09">登录后第一次需要 KYC ，将美国信息生成器的信息截图上传，系统会自动通过审核</div><div class="notion-text notion-block-48899bd06dc24a5382be5e4a752d9bda">例子：</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-4acdb39798174e83909263d8eddac39c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:313.99481201171875px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F60b8328b-2f8a-440f-91f8-f45ba3f4cfe2%2F889e71df-2b63-4291-994e-12a246332bce%2Fimage.png?table=block&amp;id=4acdb397-9817-4e83-9092-63d8eddac39c&amp;t=4acdb397-9817-4e83-9092-63d8eddac39c&amp;width=313.99481201171875&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-62d15315d2404bd78be395f0579d1620">完成 KYC 进入后台后，可以直接点击左侧的 Domain Registration 申请域名</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-b98bc0515bd749249501fafc6099a836"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://minio.zhichao.org/images/us.kg3.webp?spaceId=60b8328b-2f8a-440f-91f8-f45ba3f4cfe2&amp;t=b98bc051-5bd7-4924-9501-fafc6099a836" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-ce68b6e484d2480399f222916eb28308">填写 NS，将 Cloudflare 的 NS 填入即可</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-506a380678624cae864f26fce870d28e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F60b8328b-2f8a-440f-91f8-f45ba3f4cfe2%2F9fe7f3ec-7193-4a8e-bdf3-86dbd787feaa%2Fae26fb841c92eadfe9cb42c52ac7c2c1_us.kg4.webp?table=block&amp;id=506a3806-7862-4cae-864f-26fce870d28e&amp;t=506a3806-7862-4cae-864f-26fce870d28e&amp;width=745.65625&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-aaac6b2a607d4f90843919241e9127e4">完成以上步骤后，就能看到域名申请成功了</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-ff955a8ddccc454cb78dd1c7a23d4203"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F60b8328b-2f8a-440f-91f8-f45ba3f4cfe2%2Fc86132d7-3b09-4bf4-8f58-56d98280814b%2F15a78f94cca265cf53b160b0d001effe_us.kg5.webp?table=block&amp;id=ff955a8d-dccc-454c-b78d-d1c7a23d4203&amp;t=ff955a8d-dccc-454c-b78d-d1c7a23d4203&amp;width=745.65625&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-b045c204d28b4f7eb9a5a4cc05fd77d5">等待片刻之后，会收到 Cloudflare 邮件，提示域名成功接入，此时就可以直接在 Cloudflare 解析使用域名了</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2abab7a6f03b43b78cc281869edcde24"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F60b8328b-2f8a-440f-91f8-f45ba3f4cfe2%2F332e0d5c-d26b-4cb9-82c4-c6176b2da109%2F9c14de51bc4ad07f9c8afba6fe5f7227_us.kg6.webp?table=block&amp;id=2abab7a6-f03b-43b7-8cc2-81869edcde24&amp;t=2abab7a6-f03b-43b7-8cc2-81869edcde24&amp;width=745.65625&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-c855e5e71c17481f8edc0de998ac8d02" data-id="c855e5e71c17481f8edc0de998ac8d02"><span><div id="c855e5e71c17481f8edc0de998ac8d02" class="notion-header-anchor"></div><a class="notion-hash-link" href="#c855e5e71c17481f8edc0de998ac8d02" title="🤗切记180天后登录进pdns行续租"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">🤗切记180天后登录进pdns行续租</span></span></h2><div class="notion-text notion-block-ffe8e2a059ba448486978e32072fd5d6">注意⚠️：此域名因滥用可能某些地区会跳反诈，并且域名也存在跑路现象，有能力的还是购买域名比较保险！</div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[使用 Cloudflare Worker 代理 Google 站点]]></title>
            <link>https://www.lanni.me/article/cloudflare-google</link>
            <guid>https://www.lanni.me/article/cloudflare-google</guid>
            <pubDate>Fri, 09 Aug 2024 00:00:00 GMT</pubDate>
            <description><![CDATA[google代理，制作以后可使用自定义域名访问，不想了解一下吗？]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-0e37a0e536d44a72a72c67aa1b092d42"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><div class="notion-callout notion-gray_background_co notion-block-607bd7321b644bb8b65074058b514e1e"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="💡">💡</span></div><div class="notion-callout-text">前言：本文将使用 Cloudflare Worker 代理 Google 站点，实现在国内访问 Google。<figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-bba82bec754e450f8a6e45f78b0dfe21"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F60b8328b-2f8a-440f-91f8-f45ba3f4cfe2%2Fb0ec2d7d-17a1-4039-a6eb-e4f47bb5f8ea%2Fgoogle.png?table=block&amp;id=bba82bec-754e-450f-8a6e-45f78b0dfe21&amp;t=bba82bec-754e-450f-8a6e-45f78b0dfe21&amp;width=685.65625&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-2b950f903cfd4da8b9d6986213238681"> </div></div></div><div class="notion-blank notion-block-6e7efcdb840d4d629fd64ef51b171341"> </div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-d4cb4968eddd41c493e45e337fae63ec" data-id="d4cb4968eddd41c493e45e337fae63ec"><span><div id="d4cb4968eddd41c493e45e337fae63ec" class="notion-header-anchor"></div><a class="notion-hash-link" href="#d4cb4968eddd41c493e45e337fae63ec" title="代理Google站点"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">代理Google站点</span></span></h2><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-216174856da54ab0b36d92b1a0281495" data-id="216174856da54ab0b36d92b1a0281495"><span><div id="216174856da54ab0b36d92b1a0281495" class="notion-header-anchor"></div><a class="notion-hash-link" href="#216174856da54ab0b36d92b1a0281495" title="1.创建worker"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">1.创建worker</span></span></h3><blockquote class="notion-quote notion-block-d17710c8a7654b1d9c7f366368951374"><div>首先，登录 Cloudflare，切换至Workers &amp; Pages菜单，点击Create Application按钮：</div></blockquote><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-4e90c20d350c44dc809189bd38e898d2"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F60b8328b-2f8a-440f-91f8-f45ba3f4cfe2%2F3a41b987-d812-44a4-a180-329ce3798898%2Fimage-20240218103029571.png?table=block&amp;id=4e90c20d-350c-44dc-8091-89bd38e898d2&amp;t=4e90c20d-350c-44dc-8091-89bd38e898d2&amp;width=745.65625&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-6e9437dc9376424e8a9a76b6c5cb5665">然后，点击Create Worker按钮新建一个 Worker：</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-69b4e853391946e8bae7cf524c17bae8"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F60b8328b-2f8a-440f-91f8-f45ba3f4cfe2%2F8b12e368-84a5-426c-bc04-fe22758495f4%2Fimage-20240218103511253.png?table=block&amp;id=69b4e853-3919-46e8-bae7-cf524c17bae8&amp;t=69b4e853-3919-46e8-bae7-cf524c17bae8&amp;width=745.65625&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-6dd50849391649af8556454823fb3c25">接着，设置一个worker的名字（用英文），点击Deploy按钮</div><div class="notion-text notion-block-71b2cb4ac5d04daa89da15ef517204f0">再接着，我们点击Edit code按钮编辑代码：</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-c80ecc4191254edebf51e6b2d1e5831f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F60b8328b-2f8a-440f-91f8-f45ba3f4cfe2%2Ff138a8e1-7413-4bf6-82dc-ab22db134163%2Fimage-20240221084957533.png?table=block&amp;id=c80ecc41-9125-4ede-bf51-e6b2d1e5831f&amp;t=c80ecc41-9125-4ede-bf51-e6b2d1e5831f&amp;width=745.65625&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-c1fd8edae53b4a558075fd0afb023087" data-id="c1fd8edae53b4a558075fd0afb023087"><span><div id="c1fd8edae53b4a558075fd0afb023087" class="notion-header-anchor"></div><a class="notion-hash-link" href="#c1fd8edae53b4a558075fd0afb023087" title="2.编辑代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">2.编辑代码</span></span></h3><blockquote class="notion-quote notion-block-29919366941d41e486503ad138b0db4b"><div>将下面的代码复制粘贴至worker.js中</div></blockquote><details class="notion-toggle notion-block-c57d78f37e614d77bbc7d626086640c6"><summary>worker.js代码</summary><div></div></details><div class="notion-text notion-block-5da6a760a1a14d11b5eb4c42cb0bbb1d">代码中将 &#x27;<a class="notion-link" href="http://www.google.com/" target="_blank" rel="noopener noreferrer">www.google.com/</a>&#x27;:&#x27;<a class="notion-link" href="http://google.lanni.us.kg/" target="_blank" rel="noopener noreferrer">google.lanni.us.kg/</a>&#x27; , 此处的 google.lanni.us.kg 替换为你的子域名</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-d3e32a8042d0498a899c37f00dde6857" data-id="d3e32a8042d0498a899c37f00dde6857"><span><div id="d3e32a8042d0498a899c37f00dde6857" class="notion-header-anchor"></div><a class="notion-hash-link" href="#d3e32a8042d0498a899c37f00dde6857" title="3.查看"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">3.查看</span></span></h3><div class="notion-text notion-block-ed9e82513b9445c2a26034e85e9e8a9c">至此，代理 Google 站点已完成，我们任意搜索输入一个关键字 strapi，搜索结果如下图图所示。但是由于国内 workers.dev 域名的 DNS 已污染导致无法访问，所以需要绑定一个自定义域名来绕过该问题。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-c77a6b8d96244b0d8b1c0799d64abb07"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F60b8328b-2f8a-440f-91f8-f45ba3f4cfe2%2Fb603ef26-bed3-4cff-acb7-bf10dcec97a8%2Fimage-20240221090516258.png?table=block&amp;id=c77a6b8d-9624-4b0d-8b1c-0799d64abb07&amp;t=c77a6b8d-9624-4b0d-8b1c-0799d64abb07&amp;width=745.65625&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-a782729e27a64c3ba231647798df06d0" data-id="a782729e27a64c3ba231647798df06d0"><span><div id="a782729e27a64c3ba231647798df06d0" class="notion-header-anchor"></div><a class="notion-hash-link" href="#a782729e27a64c3ba231647798df06d0" title="5.自定义绑定域名"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">5.自定义绑定域名</span></span></h3><div class="notion-text notion-block-514dcd298b784038b70bd505bbe4e2be">首先，点击Add Custom Domain添加一个自定义域名：</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-245aa33b11594c5dbd51437ef684854a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F60b8328b-2f8a-440f-91f8-f45ba3f4cfe2%2F98cfa526-0561-4592-9461-ef630efb6956%2Fimage-20240221090655273.png?table=block&amp;id=245aa33b-1159-4c5d-bd51-437ef684854a&amp;t=245aa33b-1159-4c5d-bd51-437ef684854a&amp;width=745.65625&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-d1525152228a4dd586d6d2ab8bde200c">然后，输入要绑定自定义域名如 google.lanni.us.kg，点击Add Custom Domain绑定</div><div class="notion-text notion-block-158e2ca080cd4118a434de7198ca1619">等待dns生效即可使用自定义域名访问</div><div class="notion-callout notion-gray_background_co notion-block-d8d55f0bd08f4facb484906b34bc9125"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="💡">💡</span></div><div class="notion-callout-text">有关google安装或者使用上的问题，欢迎您在底部评论区留言，一起交流~</div></div><div class="notion-blank notion-block-7922113831ae422abef00a95b60b2372"> </div></main></div>]]></content:encoded>
        </item>
    </channel>
</rss>