安全:移除敏感配置文件跟踪,添加 example 模板

- application-dev.yml 含数据库/Redis/COS 密钥,从 git 移除
- docker/.env 含 COS 密钥和公网 IP,从 git 移除
- 新增 .example 模板(占位符),方便新开发者配置
- .gitignore 添加规则阻止未来误提交
This commit is contained in:
2026-03-19 10:32:42 +08:00
parent de542aa052
commit 52511dfbdd
4 changed files with 106 additions and 157 deletions

6
.gitignore vendored
View File

@@ -36,3 +36,9 @@ generate_*.py
# Documentation (keep local, do not commit)
docs/
# 敏感配置文件(含密码/密钥,不入库)
src/main/resources/application-dev.yml
docker/.env
.env
.env.local