Files
slogan/server/config.yml
T
admin a6de9ebd12 Add 'server/' from commit 'e64421295fff83acbb6d6ab3d3b27f3ef8368f00'
git-subtree-dir: server
git-subtree-mainline: c4e617ada7
git-subtree-split: e64421295f
2026-08-04 15:02:35 +08:00

101 lines
2.9 KiB
YAML
Raw 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.
# SQLite 落盘到 data/ 子目录:本地开发与容器都便于挂载持久化(data/ 已入 .gitignore
database:
default:
name: data/slogan.db
type: sqlite
debug: false
plan:
name: data/slogan_plan.db
type: sqlite
debug: false
pay:
name: data/slogan_pay.db
type: sqlite
debug: false
cps:
name: data/slogan_cps.db
type: sqlite
debug: false
cache:
ttl: 60
server:
address: :3007
name: slogan
workerId: 1
clientMaxBodySize: 209715200
requestTimeout: 3000
chat:
timeout: 300
max_retries: 3
# 和风天气 API Key(v7,免费版)
weather:
qweather_key: ""
qweather_base: "https://devapi.qweather.com"
# 高德地理编码 Key
geo:
amap_key: ""
amap_base: "https://restapi.amap.com"
# 图像生成供应商配置(真实调用,不支持 mock)
imagegen:
supplier: "wanx" # wanx
wanx_api_key: "sk-ws-H.RPMDIPI.Ba0s.MEUCIDmDkIKUzhk_TCC6hckvIZCP6LNVCnE-VDCdYH5yDTUjAiEAqfG-wUWGcVJyNuyxWsUFdKD_oHkPn3TxdxDcYcmlU24"
wanx_model: "wan2.7-image-pro"
wanx_base: "https://dashscope.aliyuncs.com/api/v1/services/aigc/image-generation/generation"
wanx_task_base: "https://dashscope.aliyuncs.com/api/v1/tasks"
# 大模型配置(OpenAI 兼容,如通义/DeepSeek/Kimi
llm:
base_url: "https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions"
api_key: "sk-ws-H.RPMDIPI.Ba0s.MEUCIDmDkIKUzhk_TCC6hckvIZCP6LNVCnE-VDCdYH5yDTUjAiEAqfG-wUWGcVJyNuyxWsUFdKD_oHkPn3TxdxDcYcmlU24"
model_name: "qwen3.7-plus"
max_tokens: 4096
temperature: 0.8
# 支付(虎皮棋聚合支付,key 为空则支付功能降级关闭)
payment:
xunhu_appid: ""
xunhu_appsecret: ""
notify_url: "http://localhost:3007/member/order/notify" # 生产需公网可达
channel: "alipay,wechat"
api_base: "https://api.xunhupay.com"
# 广告激励限频(自然日)
ad:
limit_effect_extra: 2
limit_vip_trial: 1
# 3D 化身生成(Tripo 图像转 3Dkey 为空时 /avatar/build 返回失败并提示配置)
avatar:
tripo_api_key: ""
tripo_base: "https://api.tripo3d.ai/v2/openapi"
tripo_model_version: "v2.5-20250123"
poll_interval: 5 # 秒
poll_timeout: 900 # 秒(15 分钟上限)
render_frames: true # 是否用 Tripo GLB 本地渲染旋转帧预览(frames_url)
# 3D 化身帧序列预渲染(Node + headless-glnode_bin 需指向 gl 有预编译二进制的 Node 版本)
render:
enabled: true
node_bin: "/Users/zhangbin/.nvm/versions/node/v18.20.4/bin/node"
# CPS 联盟(key 全空则联盟入口优雅降级隐藏)
cps:
sync_cron: "0 4 * * *" # 联盟商品定时同步
meituan_appkey: ""
meituan_secret: ""
meituan_pid: ""
meituan_base: "https://openapi.meituan.com"
jd_appkey: ""
jd_secret: ""
jd_site_id: ""
jd_pid: ""
jd_base: "https://api.jd.com/routerjson"
tb_appkey: ""
tb_secret: ""
tb_pid: ""
tb_adzone_id: ""
tb_base: "https://eco.taobao.com/router/rest"