Skip to content

feat: Tailscale 网络集成#9

Open
lunnynight wants to merge 1 commit intoCicadaRelay:mainfrom
lunnynight:feature/tailscale-integration
Open

feat: Tailscale 网络集成#9
lunnynight wants to merge 1 commit intoCicadaRelay:mainfrom
lunnynight:feature/tailscale-integration

Conversation

@lunnynight
Copy link

功能描述

支持 Tailscale mesh 网络,无需公网 IP 即可组建分布式集群。

主要变更

  • config/network.ts: 新增节点配置模块,支持 Tailscale IP 映射
  • config/redis.ts: Redis 配置改用环境变量,移除硬编码密码
  • fsc/memov-sync-daemon.ts: 动态获取活跃节点列表
  • .env.example: 添加环境变量配置模板
  • .gitignore: 排除敏感文件(密钥、配置、本地数据)
  • TAILSCALE-INTEGRATION.md: 集成文档

测试结果

  • ✅ 3 节点在线(Mac + 硅谷 + Windows)
  • ✅ MemoV 跨节点同步正常
  • ✅ Redis 连接正常(100.80.67.125:6379)
  • ✅ 无敏感信息泄露

兼容性

  • 保留 WireGuard IP 映射(向后兼容)
  • 可通过环境变量切换网络模式
  • 节点可动态启用/禁用

网络拓扑

Mac 本地 (master)     - 100.114.56.105
硅谷节点 (worker)     - 100.80.67.125
Windows 节点 (worker) - 100.101.173.35

- 新增 config/network.ts 节点配置模块
- 支持 Tailscale mesh 网络(100.x.x.x)
- Redis 配置改用环境变量
- MemoV 动态节点发现
- 移除硬编码密码和密钥文件
- 添加 .env.example 配置模板
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant