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:
7
InfoGenie-frontend/.env.example
Normal file
7
InfoGenie-frontend/.env.example
Normal file
@@ -0,0 +1,7 @@
|
||||
# 复制为 .env.development / .env.production 后填写;勿提交真实密钥
|
||||
VITE_API_URL=http://127.0.0.1:5002
|
||||
VITE_AUTH_URL=https://auth.shumengya.top
|
||||
VITE_AUTH_API_URL=https://auth.api.shumengya.top
|
||||
VITE_DEBUG=true
|
||||
# 须与 Go 后端 INFOGENIE_SITE_ADMIN_TOKEN 一致
|
||||
VITE_SITE_ADMIN_GATE=
|
||||
Reference in New Issue
Block a user