unis_manager/.env.example

28 lines
1.0 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# ---- 数据库 ----
# 默认 SQLite(零配置)。迁移 MySQL 时改成:
# DATABASE_URL=mysql+pymysql://user:password@127.0.0.1:3306/unis_board?charset=utf8mb4
DATABASE_URL=sqlite:///./data/board.db
# ---- AI 整理(OpenAI 兼容协议)----
# DeepSeek / 通义千问(兼容模式) / Moonshot / 智谱 / OpenAI / 本地 Ollama 均可
# 留空 AI_API_KEY 时,系统自动降级为「本地规则解析」,功能仍可用
AI_API_BASE=https://api.deepseek.com/v1
AI_API_KEY=
AI_MODEL=deepseek-chat
AI_TEMPERATURE=0.2
# ---- 服务 ----
PORT=8770
# ---- 登录账号(首次启动时用来创建管理员,之后以数据库里的为准)----
ADMIN_USERNAME=admin
ADMIN_PASSWORD=admin123
# 登录态有效天数
SESSION_DAYS=30
# ---- Docker 部署(deploy.sh / docker-compose.yml 读取)----
# 对外端口。容器内部固定监听 8770,换端口只改这里(上面的 PORT 是本机 run.sh 用的)
HOST_PORT=8770
# 周期/周次/入库时间等日期按此时区计算,别留 UTC,否则整体差 8 小时
TZ=Asia/Shanghai