Files
course-agent-od/env.example
T
pengxiao 09621ef767 refactor: simplify homepage layout, consolidate landing page components
Merge hero/stats/features/footer sections into home-page-content.tsx,
remove separate landing-page.tsx. Update styles, layout, navbar, and
backend config.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-22 11:24:34 +08:00

59 lines
1.4 KiB
Plaintext

# 硅基流动API配置
SILICONFLOW_API_KEY=your-api-key-here
SILICONFLOW_BASE_URL=https://api.siliconflow.cn/v1
SILICONFLOW_MODEL=Qwen/Qwen3-30B-A3B-Thinking-2507
# 数据库配置(本地开发默认使用SQLite)
DATABASE_URL=sqlite:///../data/database/course_agent.db
# Docker部署使用PostgreSQL
# DATABASE_URL=postgresql+psycopg://user:password@db:5432/course_agent_db
# JWT配置
SECRET_KEY=your-super-secret-key-change-in-production
ALGORITHM=HS256
ACCESS_TOKEN_EXPIRE_MINUTES=30
# 向量数据库配置
VECTOR_STORE_PATH=../runtime/vector_store
EMBEDDING_MODEL=shibing624/text2vec-base-chinese
HF_ENDPOINT=https://hf-mirror.com
# 应用配置
APP_NAME=国土空间规划课程智能体
APP_VERSION=0.1.0
DEBUG=True
HOST=127.0.0.1
PORT=8000
# CORS配置
ALLOWED_ORIGINS=["http://localhost:8001","http://127.0.0.1:8001"]
# 文件上传配置
UPLOAD_DIR=../data/uploads
MAX_FILE_SIZE=10485760
ALLOWED_EXTENSIONS=[".pdf",".docx",".txt",".md"]
# 知识库配置
KNOWLEDGE_BASE_DIR=../data/knowledge_base
ENABLE_FILE_WATCHER=True
# 书籍配置
BOOK_DIR=../data/book
# 图像生成配置
GENERATED_IMAGES_DIR=../runtime/generated_images
IMAGE_GENERATION_TIMEOUT=120
MAX_IMAGE_SIZE=10485760
# 日志配置
LOG_LEVEL=INFO
LOG_FILE=../runtime/logs/app.log
# 前端配置
NEXT_PUBLIC_BACKEND_URL=http://localhost:8000
NEXT_PUBLIC_API_URL=http://localhost:8000
NEXTAUTH_SECRET=your-nextauth-secret-change-in-production
NEXTAUTH_URL=http://localhost:8001