# 复制为 .env 后修改（一键部署脚本会自动生成）
# 部署目录默认：/opt/secondary-school-grade-archive

WEB_PORT=23566
FRONTEND_DIST=/opt/secondary-school-grade-archive/frontend/dist

SECRET_KEY=请替换为随机字符串
POSTGRES_USER=gradeapp
POSTGRES_PASSWORD=请替换为强密码
POSTGRES_DB=student_archive
DATABASE_URL=postgresql://gradeapp:请替换为强密码@127.0.0.1:5432/student_archive

UPLOAD_DIR=/opt/secondary-school-grade-archive/uploads

CORS_ORIGINS=http://127.0.0.1:23566,http://localhost:23566

OLLAMA_BASE_URL=http://127.0.0.1:11434
OLLAMA_MODEL=qwen2.5:7b
# 局域网 GPU OCR 服务（deploy/ocr-worker），留空则本机 CPU 识别
OCR_SERVICE_URL=http://127.0.0.1:23567
OCR_PORT=23567
OCR_API_KEY=
OPENAI_BASE_URL=https://api.openai.com/v1
OPENAI_MODEL=gpt-4o-mini
FLUCTUATION_THRESHOLD=0.08

ADMIN_DEFAULT_USERNAME=admin
ADMIN_DEFAULT_PASSWORD=admin123
