修复:移除敏感密码文件提交,新增示例模板

This commit is contained in:
小溪 2026-03-05 00:14:25 +08:00
parent d5eb611664
commit 7a410eccf9
3 changed files with 13 additions and 6 deletions

1
.gitignore vendored
View File

@ -1,5 +1,6 @@
# 敏感配置文件
secrets.env
passwords.txt
*.env
*.key
*.pem

12
passwords.example.txt Normal file
View File

@ -0,0 +1,12 @@
# 敏感密钥配置示例文件,真实密钥请放在 passwords.txt 中(已加入 .gitignore 不会提交到Git
# MySQL
MYSQL_ONLINE_PASSWORD=***线上MySQL密码***
MYSQL_TEST_PASSWORD=***测试MySQL密码***
# PostgreSQL
PG_ONLINE_PASSWORD=***线上PostgreSQL密码***
PG_TEST_PASSWORD=***测试PostgreSQL密码***
# Elasticsearch
ES_TEST_PASSWORD=***测试ES密码***
ES_ONLINE_PASSWORD=***线上ES密码***

View File

@ -1,6 +0,0 @@
fsdo45ijfmfmuu77$%^&
fdsfiidier^$*hjfdijjd232
LdfjdjL83h3h3^$&**YGG*
dsjsLGU&%$%FG*((yy9y8
lPLYr2!ap%^4UQb#
F%?QDcWes7N2WTuiYD11