Files
FileShare/.gitignore
T
SKYMirror 9686fe887a FileCodeBox Go 重写版 v2.5.6(安全审计修复版)
Go 1.27.1 (Gin+GORM) + Vue 3 文件快传服务:

- 安全审计全部修复(docs/security-audit-2026-09-05.md):
  bcrypt 密码哈希与自动升级、presign 直传服务端大小/内容校验、
  全局请求体上限、依赖升级(govulncheck 0 命中)、janitor 后台清理、
  管理端审计动作落库、/admin CORS 收紧、通知内容白名单净化、
  会话默认 7 天、限流缓存故障降级、robots.txt 端点等
- 前端:取件链接复制修复(不再重复拼接提取码)、markdown 净化器加固
- Redis 支持库号(FCB_REDIS_DB / redis://…/db URL)
- 文档:docs/api/* 与 openapi.yaml 同步最新行为(robots.txt、
  提码 5 位起、chunk 32MiB 上限、admin 审计动作等)

验证:gofmt/go vet/go test 全绿;二进制端到端冒烟通过
2026-09-05 04:22:41 +08:00

38 lines
1.1 KiB
Plaintext
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.
# ===== 构建产物与本地缓存 =====
# Go 构缓存 / 模块缓存(体积大,且 .gomodcache 含第三方源码副本)
.gocache/
.gomodcache/
.gotools/
.npm-cache/
# 前端依赖与构建产物
web/node_modules/
web/dist/
# web-embed/ 为宿主预构建产物(cp -a web/dist web-embed/),仅保留占位;
# Dockerfile 缺失 index.html 时自动回退为容器内构建前端
web-embed/*
!web-embed/.gitkeep
# go:embed 目标:直接提交构建产物,保证全新克隆 `go build`/`go run` 开箱可用
# (前端源码变更后重新构建并同步:cd web && npm run build && rm -rf ../server/web/dist && cp -a dist ../server/web/dist
# 参考实现(第三方上游代码,非本项目源码,不入库)
reference/
# 本地运行数据(SQLite 数据库、本地存储文件、日志)
server/data/
*.db
*.db-shm
*.db-wal
*.log
server.pid
# 环境变量(保留 .env.example 模板;.env 属各部署环境自有配置)
deploy/.env
# 系统杂物
.DS_Store
# 会话/协作目录(工具私有,非项目源码)
.agent-teams/