chore: 将本地密钥 env 文件加入 gitignore
忽略 apps/api/.env 与 .env.docker,并从仓库移除已跟踪的 API 本地配置。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
6
.gitignore
vendored
6
.gitignore
vendored
@@ -8,6 +8,12 @@ release/
|
||||
coverage/
|
||||
.turbo/
|
||||
*.tsbuildinfo
|
||||
|
||||
# 本地环境变量(含密钥,勿提交;示例见 .env.example / .env.docker.example)
|
||||
.env.docker
|
||||
apps/api/.env
|
||||
.cursor/
|
||||
|
||||
# 勿将 tsc 编译产物提交到 player/src(会导致 Vite 加载过期 .js)
|
||||
apps/player/src/**/*.js
|
||||
!apps/player/src/router/index.js
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
DATABASE_URL=postgresql://thebet365:thebet365@localhost:5432/thebet365
|
||||
REDIS_URL=redis://localhost:6379
|
||||
JWT_SECRET=dev-secret-change-in-production
|
||||
JWT_PLAYER_EXPIRES=24h
|
||||
JWT_ADMIN_EXPIRES=2h
|
||||
JWT_AGENT_EXPIRES=8h
|
||||
PORT=3000
|
||||
NODE_ENV=development
|
||||
Reference in New Issue
Block a user