dootask/config/dootask.php
kuaifan 746337c2f6 feat(search): 语义搜索迁移至 Manticore Auto Embeddings,向量走 ai 插件免费模型
- embedding 统一改走 ai 插件 /embeddings(免费向量模型,1024 维),删除第三方 key 分支
- 5 张向量表启用引擎 Auto Embeddings(MODEL_NAME/FROM/API_URL),写入/更新时引擎自动生成向量
- 表定义使用派生密钥 sha256(APP_KEY:embeddings),避免主密钥进入引擎元数据
- 写入改为 REPLACE(单行原子)与多行批量 REPLACE(整语句一次向量化调用,失败回退逐行)
- 结构指纹 vector:schema 标记:版本/模型/端点/APP_KEY 变化时自动清空重建并重置同步指针
- 退役 PHP 向量管道:删除 generate-vectors 命令、双指针、withVector 分支与批量向量生成方法
- 根治缺陷:全文重同步不再抹掉向量;内容编辑后向量由引擎自动重算,不再过期
2026-07-15 10:45:20 +00:00

55 lines
2.3 KiB
PHP
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.

<?php
return [
// 系统设置开关:设为 'disabled' 时禁止通过接口修改系统设置(SystemController)
'system_setting' => env('SYSTEM_SETTING'),
// 许可证显示开关:设为 'hidden' 时隐藏系统许可证信息(Doo::license)
'system_license' => env('SYSTEM_LICENSE'),
// 演示账号:登录页展示的演示账号(SystemController::demo)
'demo_account' => env('DEMO_ACCOUNT'),
// 演示密码:登录页展示的演示账号密码(SystemController::demo)
'demo_password' => env('DEMO_PASSWORD'),
// 管理员密码修改开关:设为 'disabled' 时禁止修改管理员密码(User 模型)
'password_admin' => env('PASSWORD_ADMIN'),
// 创始人密码修改开关:设为 'disabled' 时禁止修改创始人密码(User 模型)
'password_owner' => env('PASSWORD_OWNER'),
// Manticore 全文搜索服务主机(ManticoreBase)
'search_host' => env('SEARCH_HOST', 'search'),
// Manticore 全文搜索服务端口(ManticoreBase)
'search_port' => env('SEARCH_PORT', 9306),
// AI 插件服务主机(AI::getEmbedding 走 ai 插件 /embeddings 免费向量模型)
'ai_host' => env('AI_HOST', 'ai'),
// AI 插件服务端口(AI::getEmbedding)
'ai_port' => env('AI_PORT', 5001),
// 文件回收站自动清空天数(DeleteTmpTask)
'auto_empty_file_recycle' => env('AUTO_EMPTY_FILE_RECYCLE', 365),
// 临时文件自动清理天数(DeleteTmpTask)
'auto_empty_temp_file' => env('AUTO_EMPTY_TEMP_FILE', 30),
// 在线授权:appstore 授权中心地址(OnlineLicense;默认中央,测试可指向 dev appstore)
// [调试中] 临时指向本地 dev appstore,发版前改回 'https://appstore.dootask.com'
'online_license_appstore_url' => env('ONLINE_LICENSE_APPSTORE_URL', 'https://appstore.dootask.com'),
// 在线授权:租约剩余不足该天数时触发续期(OnlineLicense)
'online_license_renew_within_days' => env('ONLINE_LICENSE_RENEW_WITHIN_DAYS', 20),
// 在线授权:租约剩余不足该天数时在提醒(OnlineLicense)
'online_license_warn_days' => env('ONLINE_LICENSE_WARN_DAYS', 7),
// 在线授权:冻结(租约过期)后到吊销的宽限天数(OnlineLicense)
'online_license_grace_days' => env('ONLINE_LICENSE_GRACE_DAYS', 14),
];