forked from kyour-cn/xoshe
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev.php
More file actions
32 lines (30 loc) · 871 Bytes
/
dev.php
File metadata and controls
32 lines (30 loc) · 871 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
/**
* EasySwoole框架配置信息
*
*/
return [
'SERVER_NAME' => "EasySwoole",
'MAIN_SERVER' => [
'LISTEN_ADDRESS' => '0.0.0.0',
'PORT' => 8105,
'SERVER_TYPE' => EASYSWOOLE_WEB_SOCKET_SERVER, //可选为 EASYSWOOLE_SERVER EASYSWOOLE_WEB_SERVER EASYSWOOLE_WEB_SOCKET_SERVER,EASYSWOOLE_REDIS_SERVER
'SOCK_TYPE' => SWOOLE_TCP,
'RUN_MODEL' => SWOOLE_PROCESS,
// Swoole配置信息
'SETTING' => [
'worker_num' => 8,
'reload_async' => true,
'max_wait_time'=> 3,
// 兼容文件上传最大值
// 'package_max_length' => 20 * 1024 * 1024
],
'TASK' => [
'workerNum' => 4,
'maxRunningNum' => 128,
'timeout' => 15
]
],
'TEMP_DIR' => './Temp',
'LOG_DIR' => './Temp/Log'
];