100 lines
2.9 KiB
YAML
100 lines
2.9 KiB
YAML
# SQLite 落盘到 data/ 子目录:本地开发与容器都便于挂载持久化(data/ 已入 .gitignore)
|
||
# debug: true 时 gdb 在控制台打印每条 SQL("[ms] [group] [schema] [rows] ..."),生产可关
|
||
database:
|
||
default:
|
||
name: data/slogan.db
|
||
type: sqlite
|
||
debug: true
|
||
plan:
|
||
name: data/slogan_plan.db
|
||
type: sqlite
|
||
debug: true
|
||
pay:
|
||
name: data/slogan_pay.db
|
||
type: sqlite
|
||
debug: true
|
||
cps:
|
||
name: data/slogan_cps.db
|
||
type: sqlite
|
||
debug: true
|
||
cache:
|
||
ttl: 60
|
||
server:
|
||
address: :8080
|
||
name: slogan
|
||
clientMaxBodySize: 209715200
|
||
|
||
# 异步任务协程池并发度(缺失或非法回退 styleagent/consts 业务默认值)
|
||
pool:
|
||
generate: 8
|
||
effect: 4
|
||
avatar: 4
|
||
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" # 真实 Key,提交前勿带入新仓库
|
||
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" # 真实 Key,提交前勿带入新仓库
|
||
model_name: "qwen3.7-plus"
|
||
max_tokens: 4096
|
||
temperature: 0.8
|
||
|
||
# 支付(虎皮棋聚合支付,key 为空则支付功能降级关闭)
|
||
payment:
|
||
xunhu_appid: ""
|
||
xunhu_appsecret: ""
|
||
notify_url: "http://localhost:8080/member/order/notify" # 生产需公网可达
|
||
channel: "alipay,wechat"
|
||
api_base: "https://api.xunhupay.com"
|
||
|
||
# 广告激励限频(自然日)
|
||
ad:
|
||
limit_effect_extra: 2
|
||
limit_vip_trial: 1
|
||
|
||
# 3D 化身生成(Tripo 图像转 3D,key 为空时 /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 分钟上限)
|
||
|
||
# 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"
|