mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2026-06-07 12:38:11 +08:00
将 v8 分支需要的仓库级配置、Composer 依赖、CI 脚本和入口文件一次性整理到目标仓库。 主要内容: - 更新 composer.json,切换到 v8 插件化依赖与本地 path 仓库。 - 同步 .gitignore、代码风格、发布脚本和 GitHub Actions 配置。 - 调整 config、think、public 入口和默认 index 控制器以适配 v8 运行结构。 - 清理 v6 遗留的根级 license/security 文件,由组件文档和仓库说明统一承载。
72 lines
2.4 KiB
PHP
72 lines
2.4 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
/**
|
|
* +----------------------------------------------------------------------
|
|
* | ThinkAdmin Plugin for ThinkAdminDeveloper
|
|
* +----------------------------------------------------------------------
|
|
* | Copyright (c) 2014~2026 ThinkAdmin [ thinkadmin.top ]
|
|
* +----------------------------------------------------------------------
|
|
* | Official Website: https://thinkadmin.top
|
|
* +----------------------------------------------------------------------
|
|
* | Licensed: https://mit-license.org
|
|
* | Disclaimer: https://thinkadmin.top/disclaimer
|
|
* | Vip Rights: https://thinkadmin.top/vip-introduce
|
|
* +----------------------------------------------------------------------
|
|
* | Gitee Repository: https://gitee.com/zoujingli/ThinkAdmin
|
|
* | Github Repository: https://github.com/zoujingli/ThinkAdmin
|
|
* +----------------------------------------------------------------------
|
|
*/
|
|
return [
|
|
'defaults' => [
|
|
'runtime' => [
|
|
// 'stdout_file' => syspath('safefile/worker/shared.stdout.log'),
|
|
// 'log_max_size' => 10 * 1024 * 1024,
|
|
// 'stop_timeout' => 2,
|
|
// 'event_loop' => \Workerman\Events\Event::class,
|
|
],
|
|
'monitor' => [
|
|
'files' => [
|
|
'enabled' => true,
|
|
'interval' => 3,
|
|
'paths' => ['app', 'config', 'route', 'plugin'],
|
|
'extensions' => ['php', 'env', 'ini', 'yaml', 'yml'],
|
|
],
|
|
'memory' => [
|
|
'enabled' => true,
|
|
'interval' => 60,
|
|
'limit' => '1G',
|
|
],
|
|
],
|
|
],
|
|
'services' => [
|
|
'http' => [
|
|
'enabled' => true,
|
|
'label' => 'ThinkAdmin HTTP',
|
|
'driver' => 'http',
|
|
'server' => [
|
|
'host' => '127.0.0.1',
|
|
'port' => 2346,
|
|
'context' => [],
|
|
],
|
|
'process' => [
|
|
'name' => 'ThinkAdminHttp',
|
|
'count' => 4,
|
|
],
|
|
],
|
|
'queue' => [
|
|
'enabled' => true,
|
|
'label' => 'ThinkAdmin Queue',
|
|
'driver' => 'queue',
|
|
'process' => [
|
|
'name' => 'ThinkAdminQueue',
|
|
'count' => 2,
|
|
],
|
|
'queue' => [
|
|
'scan_interval' => 1,
|
|
'batch_limit' => 20,
|
|
],
|
|
],
|
|
],
|
|
];
|