Introduce the backend pieces for brain memory ingestion, routing, and system telemetry so the new knowledge workflows can project data into a brain view. The supporting tests lock in the new behavior and keep the expanded backend surface stable. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
27 lines
656 B
Plaintext
27 lines
656 B
Plaintext
# =============================================
|
|
# Jarvis 后端服务配置
|
|
# 复制此文件为 .env 后按需修改
|
|
# =============================================
|
|
|
|
# === 应用基础 ===
|
|
DEBUG=false
|
|
HOST=127.0.0.1
|
|
PORT=9527
|
|
SECRET_KEY=change-me-to-a-random-secret-key
|
|
CORS_ORIGINS=["http://localhost:5173","http://localhost:3000"]
|
|
|
|
# === 数据存储 ===
|
|
DATABASE_URL=sqlite+aiosqlite:///./data/jarvis.db
|
|
DATA_DIR=./data
|
|
CHROMA_PERSIST_DIR=./data/chroma
|
|
UPLOAD_DIR=./data/uploads
|
|
MAX_UPLOAD_SIZE=52428800
|
|
|
|
# === JWT ===
|
|
ACCESS_TOKEN_EXPIRE_MINUTES=1440
|
|
|
|
# === 定时任务 ===
|
|
SCHEDULER_ENABLED=true
|
|
DAILY_PLAN_TIME=00:00
|
|
FORUM_SCAN_INTERVAL_MINUTES=30
|