Files

26 lines
1.3 KiB
Bash
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
PORT=5679
# Optional. SQLite 数据库文件位置(默认仓库根 data/huobao.sqlite3)
# SQLITE_PATH=/path/to/huobao.sqlite3
# Optional. 数据根目录(默认仓库根 data/;桌面版由 Electron 注入 HUOBAO_DATA_DIR)
# HUOBAO_DATA_DIR=/path/to/data
# STORAGE_PATH=/path/to/data/static
# Optional. MySQL → SQLite 启动自动迁移(老用户升级):显式配置 DATABASE_URL 或
# MYSQL_HOST 且 SQLite 为空库时,启动自动一次性导入全部表(原子事务 + 行数校验 +
# 成功后写 .mysql-imported 标记)。关闭:MYSQL_AUTO_IMPORT=false
# DATABASE_URL=mysql://huobao:huobao@127.0.0.1:3306/huobao_drama
# Optional. Public base URL of this backend. Required when passing locally
# uploaded reference videos/audios/files to an upstream video API (local
# /static paths are resolved as PUBLIC_BASE_URL + path).
# PUBLIC_BASE_URL=https://your-domain.com
# Optional. 关闭文本模型思考(thinking)模式,默认 true。
# 对 new-api 类中转站在请求体注入关思考参数,规避中转站强制回传
# reasoning_content 导致的 400;官方 OpenAI/Gemini 端点自动跳过。
# AI_DISABLE_THINKING=false
# 可选:自定义注入的 OpenAI 风格参数(JSON),适配不同中转站
# AI_THINKING_OFF_PATCH={"thinking":{"type":"disabled"},"enable_thinking":false}