Commit Graph

4 Commits

Author SHA1 Message Date
shijing 7214649759 feat: storage 改按日期分组,加 FastAPI 代理路由
- 上传落到 storage/YYYY/MM/DD/{uuid}.ext,storage_key 记录相对路径
- 新增 GET /api/files/{key:path} 读文件,防目录穿越;旧的扁平 key 也兼容
- temporary_url 返回 /api/files/{key},前端可直接用
- storage 目录已在 .gitignore(backend/storage/),无需再改

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-07-14 09:51:05 +08:00
shijing 96241790dd feat: FastAPI 直接加载 SSL,ssl 目录纳入 gitignore
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-07-10 15:55:02 +08:00
shijing 49f1fb6089 feat: 后端服务前端 dist 并统一使用 8775 端口
- backend/app/main.py 挂载 dist/ 作为 SPA 静态资源,/assets 走 StaticFiles,其它路径回落 index.html
- 前后端 API base 统一切换到 127.0.0.1:8775,避开 8000 占用
- run.bat 自动创建/复用 backend/.venv,用 venv 启动 uvicorn
- .gitignore 忽略 backend/.venv/
- 新增 deploy/finai-backend.service

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-07-10 15:29:03 +08:00
shijing 75694b3182 chore: initial commit 2026-07-09 14:26:05 +08:00