chore: 添加 .gitignore 并移除敏感/缓存文件
- 添加 .gitignore (Python __pycache__, .env, .idea, node_modules 等) - 从追踪中移除 backend/.env, frontend/.env (密钥文件) - 从追踪中移除 __pycache__/ 目录 (编译缓存) - 从追踪中移除 .idea/ (IDE 配置)
This commit is contained in:
13
backend/.env
13
backend/.env
@ -1,13 +0,0 @@
|
||||
# ============================================================
|
||||
# 生产流转管理系统 — 后端环境变量
|
||||
# 测试环境局域网 IP: 192.168.9.80
|
||||
# 数据库: PostgreSQL 15 + pgvector (独立容器, 端口 5433)
|
||||
# ============================================================
|
||||
|
||||
DATABASE_URL=postgresql+asyncpg://track:track_prod_2026@localhost:5433/track_production
|
||||
SECRET_KEY=change-me-to-a-random-secret-key-in-production
|
||||
ACCESS_TOKEN_EXPIRE_MINUTES=30
|
||||
DEBUG=true
|
||||
|
||||
# 跨域白名单(JSON 数组格式,供 pydantic 解析)
|
||||
CORS_ORIGINS='["http://localhost:1420", "tauri://localhost", "http://192.168.9.80:1420", "http://192.168.9.80"]'
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user