<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Cloudflare on 想记录少女的心事…</title><link>https://blog.20033999.xyz/tags/cloudflare/</link><description>Recent content from 想记录少女的心事…</description><generator>Hugo</generator><language>zh-cn</language><managingEditor>yursamor@users.noreply.github.com (yursamor)</managingEditor><webMaster>yursamor@users.noreply.github.com (yursamor)</webMaster><copyright>本博客所有文章除特别声明外，均采用 BY-NC-SA 许可协议。转载请注明出处！</copyright><lastBuildDate>Mon, 29 Jun 2026 17:30:23 +0800</lastBuildDate><atom:link href="https://blog.20033999.xyz/tags/cloudflare/index.xml" rel="self" type="application/rss+xml"/><item><title>一整天都在搭管道：frp、aliyun、CF、博客全连起来了</title><link>https://blog.20033999.xyz/post/2026-06-29-frp-aliyun-cloudflare-deploy/</link><pubDate>Mon, 29 Jun 2026 17:24:00 +0800</pubDate><author>yursamor@users.noreply.github.com (yursamor)</author><guid>https://blog.20033999.xyz/post/2026-06-29-frp-aliyun-cloudflare-deploy/</guid><description>
<![CDATA[<h1>一整天都在搭管道：frp、aliyun、CF、博客全连起来了</h1><p>作者：yursamor（yursamor@users.noreply.github.com）</p>
        
          <blockquote>
<p>2026-06-29 一整天的运维流水账。从早上 9:41 改 frps.toml 一行配置开始，到下午 17:19 写完这篇博客结束。一共 8 小时，中间踩了 4-5 个值得记的坑，最后所有机器通过 frp + CF + aliyun 三家串成一张能跑的网。</p>
</blockquote>
<h2 id="tldr">
<a class="header-anchor" href="#tldr"></a>
TL;DR
</h2><ul>
<li>把 si 上 <code>frps</code> 升到强制 TLS 模式，userver 上 <code>frpc</code> 用域名连过来</li>
<li>顺手用 si 上跑的 <code>aliyun-console</code> (knife4j) 把 si 的 80/443/7000/10222 端口在阿里云安全组里放行</li>
<li>解析了 <code>frps.20033999.xyz</code> 走 nginx，把 si 上的 nginx 部署目录从 <code>conf.d/letsencrypt</code> 整成 <code>config/certs/html</code></li>
<li>本地装 <code>cloudflared</code>，试了 <code>cloudflared access ssh</code>，折腾完最后还是切回 frp 直连</li>
<li>userver 上用 docker compose 起了 MySQL 8.0.39 + Redis 7.4.1，共享 <code>yursamor</code> external network</li>
<li>从 si 上 <code>/opt/rds/</code> 把 <code>nacos_full_20260628-1712.sql.gz</code> 还原到 userver 的 mysql，新建 <code>nacos</code> 库（12 张表，31 条 config）</li>
</ul>
<h2 id="早上-0941改-frps-强制-tls">
<a class="header-anchor" href="#%e6%97%a9%e4%b8%8a-0941%e6%94%b9-frps-%e5%bc%ba%e5%88%b6-tls"></a>
早上 09:41：改 frps 强制 TLS
</h2><p>最早的想法很简单：把 <code>si.20033999.xyz</code> 上跑着的 <code>frps</code> 0.69.1 升级到强制 TLS 模式，配置就一行：</p>
        
        <hr><p>本文2026-06-29首发于<a href='https://blog.20033999.xyz/'>想记录少女的心事…</a>，最后修改于2026-06-29</p>]]></description><category>技术</category></item></channel></rss>