初始提交:项目基础结构
- backend: FastAPI 后端服务 (Python) - frontend: React + Tauri 前端应用 - docker-compose.yml: 容器编排配置
This commit is contained in:
13
backend/.env
Normal file
13
backend/.env
Normal file
@ -0,0 +1,13 @@
|
||||
# ============================================================
|
||||
# 生产流转管理系统 — 后端环境变量
|
||||
# 测试环境局域网 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"]'
|
||||
Reference in New Issue
Block a user