chore: 生产配置移出版本库, 提供脱敏模板
backed/config.toml 内含生产数据库/Redis/JWT/captcha 凭证,随仓库分发 将导致凭证泄露(已实测凭仓库内 JWT 密钥可离线伪造超管 token)。 本地文件保留(git rm --cached 不删磁盘),新增 config.toml.example 脱敏模板说明部署方式;生产配置在服务器 /opt 下由容器挂载,不受影响。
This commit is contained in:
@@ -6,6 +6,9 @@ backed/cmd/server/cpdaily-new
|
||||
backed/*.log
|
||||
backed/*.har
|
||||
|
||||
# 本地/生产配置文件(含敏感凭证,禁止入库;模板见 backed/config.toml.example)
|
||||
backed/config.toml
|
||||
|
||||
# Frontend build (rebuilt by Docker multi-stage)
|
||||
backed/dist/
|
||||
frondend/dist/
|
||||
|
||||
Reference in New Issue
Block a user