Skip to content

Commit b66efe9

Browse files
committed
chore(security): 生产环境文件去跟踪并清除模板默认口令
1 parent d8df3fd commit b66efe9

3 files changed

Lines changed: 8 additions & 55 deletions

File tree

‎.env.example‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
# 复制此文件为 .env 并填入实际值
55

66
# --- 前端 (client/) ---
7+
# 遗留待更新:重构后前端已迁移至 app/(Tauri 2 + React),
8+
# client/ 目录已不存在;以下 VITE_* 变量名仍供前端构建使用,待后续整理
79

810
# Supabase 认证(在 https://supabase.com 创建项目后获取)
911
VITE_SUPABASE_URL=https://your-project-id.supabase.co
@@ -33,8 +35,8 @@ GLM_API_KEY=sk-your-glm-api-key
3335
# Gemini(可选,用于视频分析):https://aistudio.google.com/app/apikey
3436
GEMINI_API_KEY=your-gemini-api-key
3537

36-
# 数据库(Docker Compose 默认值,本地开发无需修改)
37-
DATABASE_URL=postgresql://keban:keban_dev@localhost:5432/keban
38+
# 数据库(本地开发自托管 Docker Compose;账号/密码自行设置,模板不提供默认口令)
39+
DATABASE_URL=postgresql://USER:PASSWORD@localhost:5432/db
3840
REDIS_URL=redis://localhost:6379
3941

4042
# JWT 安全密钥(生产环境必须修改为随机字符串)

‎.gitignore‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ dist-electron/
3030
.env.local
3131
*.local
3232
server/.env
33+
# 生产环境配置含真实密钥/PII,永不入库(模板为 .env.production.example,须保留可跟踪)
34+
.env.production
35+
*.env.production
36+
!.env.production.example
3337

3438
# OS
3539
Thumbs.db

‎server/.env.production‎

Lines changed: 0 additions & 53 deletions
This file was deleted.

0 commit comments

Comments
 (0)