tm-desensitize/PROGRESS-deploy.md

24 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 部署线进展(铁柱 · 2026-11-03 11:40)
## 已完成
- ✅ tm.tongueclaw.com / git.tongueclaw.com 双域名 HTTPS 证书签发(Let's Encrypt,有效期至 2027-02-01)
- ✅ git.tongueclaw.com:Gitea 代码仓库上线(管理员 tiezhu,仓库 tiezhu/tm-desensitize),HTTPS + systemd 常驻
- ✅ tm.tongueclaw.com:nginx 反代就绪(127.0.0.1:8736,上传上限 30MB)
- ✅ 服务器 Python 3.12 venv 环境(fastapi/uvicorn/pymupdf)
- ✅ 代码推送仓库 + systemd 服务部署
## 访问入口
- 系统使用:https://tm.tongueclaw.com/
- 开发看板:https://tm.tongueclaw.com/progress
- 代码仓库:https://git.tongueclaw.com/tiezhu/tm-desensitize
## 下一步
- PaddleOCR 接入(扫描件路径)
- 跨词/跨行 PII 识别优化(平台组已发现紧贴文字漏检问题)
- 人审界面 + 审计日志
## 首轮线上端到端验收(11:03 更新)
- 测试件:含身份证/手机号/邮箱的中文合同 PDF,经 https://tm.tongueclaw.com/ 全流程
- 结果:三类敏感信息全部从文本层彻底删除 ✅ 非敏感正文完整保留 ✅ 脱敏件下载正常 ✅
- 修复记录:① redactor insert_pdf 跨版本失效 → 改直接保存源文档;② app 页码 1 基/0 基错位导致回写落空 → 已修;③ 服务器 PyMuPDF 统一锁 1.26.5;④ 服务器加 1G swap 防 OOM