security: stop tracking env files; admin gate via VITE_SITE_ADMIN_GATE; Redis/cache/docs
Remove InfoGenie-frontend and Go .env from version control; add .env.example templates; ignore .claude local settings. Admin UI reads site gate from env only. Note: rotate secrets if repo history was ever public. Made-with: Cursor
This commit is contained in:
8
.gitignore
vendored
8
.gitignore
vendored
@@ -5,6 +5,7 @@ debug-logs/
|
||||
# IDE / OS
|
||||
.idea/
|
||||
.vscode/
|
||||
.claude/settings.local.json
|
||||
.DS_Store
|
||||
Thumbs.db
|
||||
|
||||
@@ -31,3 +32,10 @@ infogenie-backend-go/go.work*
|
||||
InfoGenie-backend/.env
|
||||
.env.local
|
||||
.env.*.local
|
||||
**/.env
|
||||
**/.env.development
|
||||
**/.env.production
|
||||
**/.env.local
|
||||
# 允许提交模板(勿填真实密钥)
|
||||
!infogenie-frontend/.env.example
|
||||
!infogenie-backend-go/.env.example
|
||||
|
||||
Reference in New Issue
Block a user