security: 保护敏感信息
- 从 git 跟踪中移除 .env 文件 - 更新 .gitignore 忽略所有环境变量文件 - 添加 .env.example 作为配置模板 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
b88b4d5156
commit
ddf28ddbf1
23
.env
23
.env
|
|
@ -1,23 +0,0 @@
|
||||||
JWT_SECRET=5270e53a05600cb1f19b287a915b1c792d7552cbaae261afb6dcaf988d0db10f
|
|
||||||
SERVER_HOST='45.130.23.71'
|
|
||||||
SERVER_PORT=3306
|
|
||||||
SERVER_USER='golc'
|
|
||||||
PASSWORD='Lichao1314!'
|
|
||||||
DB_NAME='auth_db'
|
|
||||||
|
|
||||||
# github
|
|
||||||
GITHUB_CLIENT_ID=Ov23lihk723FlNAwlFg6
|
|
||||||
GITHUB_CLIENT_SECRET=b839f50bba1f006ffdd43fb73c5ae221a54e1e2e
|
|
||||||
GITHUB_CALLBACK_URL=http://45.130.23.71:8000/callback
|
|
||||||
|
|
||||||
# 飞书
|
|
||||||
|
|
||||||
FEISHU_APP_ID=cli_a66a897f687a5013
|
|
||||||
FEISHU_APP_SECRET=s106GAbbCZk66OcHN69Rng5TaLK6fiH2
|
|
||||||
|
|
||||||
# 深寻
|
|
||||||
SILICONFLOW_API_KEY=sk-ojmkkuyrfigcmdlijbirbjaqmuwhhfsddcqdvpvayspqrupc
|
|
||||||
DEEPSEEK_API_KEY=sk-e8941dc2bf1d4d099001b161db6f4317
|
|
||||||
|
|
||||||
# Grok
|
|
||||||
GROK_API_KEY=lichao1314
|
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
JWT_SECRET=your_jwt_secret_here
|
||||||
|
SERVER_HOST=your_database_host
|
||||||
|
SERVER_PORT=3306
|
||||||
|
SERVER_USER=your_database_user
|
||||||
|
PASSWORD=your_database_password
|
||||||
|
DB_NAME=auth_db
|
||||||
|
|
||||||
|
# GitHub OAuth
|
||||||
|
GITHUB_CLIENT_ID=your_github_client_id
|
||||||
|
GITHUB_CLIENT_SECRET=your_github_client_secret
|
||||||
|
GITHUB_CALLBACK_URL=https://your-domain.com/callback
|
||||||
|
|
||||||
|
# 飞书 OAuth
|
||||||
|
FEISHU_APP_ID=your_feishu_app_id
|
||||||
|
FEISHU_APP_SECRET=your_feishu_app_secret
|
||||||
|
|
||||||
|
# AI API Keys
|
||||||
|
SILICONFLOW_API_KEY=your_siliconflow_api_key
|
||||||
|
DEEPSEEK_API_KEY=your_deepseek_api_key
|
||||||
|
GROK_API_KEY=your_grok_api_key
|
||||||
|
|
@ -2,6 +2,11 @@
|
||||||
/dist
|
/dist
|
||||||
/node_modules
|
/node_modules
|
||||||
|
|
||||||
|
# Environment variables
|
||||||
|
.env
|
||||||
|
.env.local
|
||||||
|
.env.*.local
|
||||||
|
|
||||||
# Logs
|
# Logs
|
||||||
logs
|
logs
|
||||||
*.log
|
*.log
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue