aa65f10c52
Audit docs:
- docs/reports/audit-phase-2{a-j}-line-walk.md: per-file line walk findings
- docs/reports/audit-phase-2-findings-matrix.md: 63 findings (52 fixed, 3 partial, 7 accepted)
- docs/reports/2026-05-23-full-audit-report.md: full audit consolidation
- docs/reports/audit-full-vs-phase2-reconciliation.md: cross-reference
- docs/reports/audit-phase-2-walk-closure.md: closure sign-off
Project docs:
- docs/project/phase-2-audit-remediation.md: SSOT for all fixes
- docs/project/alert-push-policy.md: dashboard alert design decisions
- docs/project/production-verification-checklist.md: first-deploy checklist
- docs/project/script-execution.md: script platform design
- docs/project/wsl-integration-test.md: WSL code-only verification guide
- docs/project/line-walk-audit-standard.md: audit methodology
- docs/project/mysql-mcp-setup.md: MCP config guide
Changelogs: 18 entries (2026-05-22 to 2026-05-23)
Project memory: CLAUDE.md, AGENTS.md updated to reflect current state
Deploy: nginx_https.conf template updated
Co-authored-by: Cursor <cursoragent@cursor.com>
1.3 KiB
1.3 KiB
Changelog — 本地 .env 远程 MySQL 配置
日期: 2026-05-22
类型: 配置(仅本机,未提交 git)
变更摘要
为 worktree 创建项目根 .env,指向远程 MySQL 172.31.170.47,并运行 scripts/sync_mysql_mcp_env.py 写入 MCP 用 MYSQL_* 变量。
配置项(不含密码)
| 项 | 值 |
|---|---|
NEXUS_DATABASE_URL |
mysql+aiomysql://Nexus@172.31.170.47:3306/nexus |
MYSQL_READONLY |
true |
MYSQL_DATABASE_ALLOWLIST |
nexus |
| 本地密钥 | 已生成 NEXUS_SECRET_KEY / API_KEY / ENCRYPTION_KEY(供后端启动) |
涉及文件
.env(gitignore,仅本机)scripts/sync_mysql_mcp_env.py(已执行)
连通性
从当前开发机测试:无法连接 172.31.170.47:3306(Can't connect to MySQL server)。
172.31.x 多为内网/VPC 地址,需 VPN、跳板机或同网段环境后 MCP/后端方可连库。
用户操作
- 确保能访问
172.31.170.47:3306(防火墙/安全组放行本机 IP) - Cursor → Settings → MCP → 启用
mysql-mcp→ Reload Window - 对话中测试
test_connection
安全提醒
数据库密码仅存在于本地 .env;若在聊天中暴露,建议在数据库侧轮换密码并重新执行 sync_mysql_mcp_env.py。