安全:移除敏感配置文件跟踪,添加 example 模板
- application-dev.yml 含数据库/Redis/COS 密钥,从 git 移除 - docker/.env 含 COS 密钥和公网 IP,从 git 移除 - 新增 .example 模板(占位符),方便新开发者配置 - .gitignore 添加规则阻止未来误提交
This commit is contained in:
6
.gitignore
vendored
6
.gitignore
vendored
@@ -36,3 +36,9 @@ generate_*.py
|
||||
|
||||
# Documentation (keep local, do not commit)
|
||||
docs/
|
||||
|
||||
# 敏感配置文件(含密码/密钥,不入库)
|
||||
src/main/resources/application-dev.yml
|
||||
docker/.env
|
||||
.env
|
||||
.env.local
|
||||
|
||||
Reference in New Issue
Block a user