feat(wechat): deploy WeChat Work bidirectional gateway at https://wx.961504.xyz and lock qyapi to SG Azure
This commit is contained in:
1 parent
e9c44439e6
commit
a9f03f1a08
6 files changed
+280
-3
No files matched your search
+11
-1
@@ -124,9 +124,19 @@
|
|||||||
1. **Cloudflare DNS**:新增 `status.961504.xyz` 与 `nav.961504.xyz` 解析指向 `104.43.105.243`。
|
1. **Cloudflare DNS**:新增 `status.961504.xyz` 与 `nav.961504.xyz` 解析指向 `104.43.105.243`。
|
||||||
2. **Uptime Kuma 容器**:在 Azure Rootless Docker 中启动 `louislam/uptime-kuma:1`(监听 `127.0.0.1:3001`,数据目录 `~/homelab/uptime-kuma-data`)。
|
2. **Uptime Kuma 容器**:在 Azure Rootless Docker 中启动 `louislam/uptime-kuma:1`(监听 `127.0.0.1:3001`,数据目录 `~/homelab/uptime-kuma-data`)。
|
||||||
3. **Caddy 443 免端口反代**:将 [`stacks/azure-edge/Caddyfile`](file:///Users/ixvii0iv/homelab/stacks/azure-edge/Caddyfile) 写入 Azure 的 `/etc/caddy/sites/homelab.conf` 并重启 Caddy,使 `https://status.961504.xyz` 与 `https://nav.961504.xyz` 免端口 HTTPS 生效。
|
3. **Caddy 443 免端口反代**:将 [`stacks/azure-edge/Caddyfile`](file:///Users/ixvii0iv/homelab/stacks/azure-edge/Caddyfile) 写入 Azure 的 `/etc/caddy/sites/homelab.conf` 并重启 Caddy,使 `https://status.961504.xyz` 与 `https://nav.961504.xyz` 免端口 HTTPS 生效。
|
||||||
4. **Tailscale 组网**:在 Azure 安装 Tailscale(开启 `--accept-dns=false --accept-routes=false` 确保不影响原有 `233boy` 代理节点)。
|
4. **Tailscale 组网**:在 Azure 安装 Tailscale(开启 `--accept-dns=false --accept-routes=false` 确保不影响原有 `233boy` 代理节点),获得虚拟 IP `100.115.204.51` 并与家里 Mac mini (`100.108.205.40`) 建立 P2P 直连。
|
||||||
- **回滚方式**:`ssh azure "sudo rm -f /etc/caddy/sites/homelab.conf && sudo systemctl restart caddy"`
|
- **回滚方式**:`ssh azure "sudo rm -f /etc/caddy/sites/homelab.conf && sudo systemctl restart caddy"`
|
||||||
|
|
||||||
|
### 13. 部署微信(企业微信自建应用 $\leftrightarrow$ 个人微信)双向控制与通知网关 (`https://wx.961504.xyz`)
|
||||||
|
- **操作时间**:2026-11-06 22:30 ~ 22:31
|
||||||
|
- **目标设备**:小米路由器 (`192.168.31.1`) & Mac mini (`192.168.31.164`) & SG Azure (`104.43.105.243`)
|
||||||
|
- **变更内容**:
|
||||||
|
1. **固定企微白名单出口 IP**:在路由器 [`configs/router-shellcrash-config.yaml`](file:///Users/ixvii0iv/homelab/configs/router-shellcrash-config.yaml) 新增 `DOMAIN-SUFFIX,qyapi.weixin.qq.com,Ai平台`,确保主动推送消息出口永远为 `104.43.105.243`。
|
||||||
|
2. **微信双向网关服务**:编写 [`stacks/wechat-bot/server.py`](file:///Users/ixvii0iv/homelab/stacks/wechat-bot/server.py) 与 [`stacks/wechat-bot/config.env`](file:///Users/ixvii0iv/homelab/stacks/wechat-bot/config.env),在 Mac mini 注册 `~/Library/LaunchAgents/com.homelab.wechat-bot.plist`(通过 `uv run` 常驻运行于 `3005` 端口)。
|
||||||
|
3. **免端口 HTTPS 回调入口**:在 Cloudflare 添加 `wx.961504.xyz -> 104.43.105.243`,并在 Azure Caddy 配置反代至 `100.108.205.40:3005`。
|
||||||
|
- **回滚方式**:`ssh mini "launchctl unload ~/Library/LaunchAgents/com.homelab.wechat-bot.plist"`
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user