dootask/config/dootask.php
kuaifan 4ca7fc10d1 feat(license): 新增在线授权(App Store 账号自助签发 + 自动续期)
- OnlineLicense 模块:登录/试用/续期/释放/状态机,离线↔在线互斥(last-write-wins)
- LicenseController + 动态路由;容器内 supervisor 独立进程定时续期(不依赖 LARAVELS_TIMER)
- license.vue 双 Tab:在线授权 + 离线绑定二次确认,已绑定在线时离线页提示+按需绑定
- 进入授权页静默刷新;同步 ai-kb 在线授权知识库

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-22 08:22:26 +00:00

49 lines
2.1 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),
// 文件回收站自动清空天数(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),
];