mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-01 15:32:48 +08:00
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
20 lines
667 B
PHP
20 lines
667 B
PHP
<?php
|
||
|
||
use think\facade\Env;
|
||
|
||
// 配置参考:https://doc.ulthon.com/read/augushong/ulthon_admin/timer-mode/zh-cn/2.x.html
|
||
$config = [
|
||
'mode' => 'normal',
|
||
|
||
// 目前仅对多进程模式生效,暂不支持设置为0(不限制)
|
||
'max_conn_per_addr' => 128, // 每个域名最多维持多少并发连接
|
||
'keepalive_timeout' => 86400, // 连接多长时间不通讯就关闭
|
||
'connect_timeout' => 86400, // 连接超时时间
|
||
'timeout' => 86400, // 请求发出后等待响应的超时时间
|
||
|
||
// 清理日志保留天数(debug_log 表)
|
||
'clear_log_days' => Env::get('timer.clear_log_days', 3),
|
||
];
|
||
|
||
return $config;
|