From 7a410eccf92718d06b6efe1328419724a9051e55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E6=BA=AA?= Date: Thu, 5 Mar 2026 00:14:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E6=95=8F=E6=84=9F=E5=AF=86=E7=A0=81=E6=96=87=E4=BB=B6=E6=8F=90?= =?UTF-8?q?=E4=BA=A4=EF=BC=8C=E6=96=B0=E5=A2=9E=E7=A4=BA=E4=BE=8B=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + passwords.example.txt | 12 ++++++++++++ passwords.txt | 6 ------ 3 files changed, 13 insertions(+), 6 deletions(-) create mode 100644 passwords.example.txt delete mode 100644 passwords.txt diff --git a/.gitignore b/.gitignore index 663887d..eee3658 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ # 敏感配置文件 secrets.env +passwords.txt *.env *.key *.pem diff --git a/passwords.example.txt b/passwords.example.txt new file mode 100644 index 0000000..80a0c70 --- /dev/null +++ b/passwords.example.txt @@ -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密码*** diff --git a/passwords.txt b/passwords.txt deleted file mode 100644 index 84b769e..0000000 --- a/passwords.txt +++ /dev/null @@ -1,6 +0,0 @@ -fsdo45ijfmfmuu77$%^& -fdsfiidier^$*hjfdijjd232 -LdfjdjL83h3h3^$&**YGG* -dsjsLGU&%$%FG*((yy9y8 -lPLYr2!ap%^4UQb# -F%?QDcWes7N2WTuiYD11