Files
secondary-school-grade-archive/.env.example
T
dekun e797d188ee Switch production deployment from Docker to PM2 on Ubuntu.
Add Express gateway, ecosystem config, and one-click install with native PostgreSQL, Node, and Python venv on port 23566.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-28 11:52:20 +08:00

21 lines
634 B
Bash

# 复制为 .env 后修改(一键部署脚本会自动生成)
# 部署目录默认:/opt/secondary-school-grade-archive
WEB_PORT=23566
API_PORT=8000
API_TARGET=http://127.0.0.1:8000
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
FLUCTUATION_THRESHOLD=0.08