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:
2026-04-03 16:10:12 +08:00
parent 284b5a5260
commit 6b3fcc1791
25 changed files with 1078 additions and 972 deletions

8
.gitignore vendored
View File

@@ -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