docs(deploy): 微信 token 中控改用 frp stcp 隧道(不上公网,无需域名)

用户腾讯云未配域名、frp 是 toml。改成:腾讯云 token 服务只绑 127.0.0.1,
经 frp stcp(点对点加密隧道)让 132 拉取,token 全程不上公网、不用证书。

- 说明书给出 toml 版 frp 配置(腾讯云 [[proxies]] stcp + 132 [[visitors]])、
  cron 换 token 脚本、切换验证步骤。
- compose:gateway 加 extra_hosts host.docker.internal:host-gateway —— 容器里的
  127.0.0.1 是容器自己,token 落在宿主机 127.0.0.1:9099,须经 host.docker.internal 访问。

代码侧(PullToken + accessToken 中控分支)无改动,沿用上一提交。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Blizzard
2026-07-21 10:02:09 +08:00
parent a1c68ec6b2
commit cbd0a96ce7
2 changed files with 64 additions and 47 deletions
+4
View File
@@ -39,6 +39,10 @@ services:
WECHAT_TOKEN_URL: ${WECHAT_TOKEN_URL:-}
WECHAT_TOKEN_SECRET: ${WECHAT_TOKEN_SECRET:-}
ports: ["3000:8080"] # frp 外网 → 132:3000 → 容器 8080
# 让容器能访问宿主机端口(微信 token 中控经 frp stcp 落在宿主机 127.0.0.1:9099
# 容器里的 127.0.0.1 是容器自己,须用 host.docker.internal 指到宿主机)。
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
# 微信支付证书(商户私钥 + 微信支付公钥):宿主机 132 的目录只读挂进容器。
# ⚠️ admin「系统配置 → 支付」里填的路径必须是**容器内路径**/etc/sundynix/wechat-cert/...),