diff --git a/src/Resource/Config.php b/src/Resource/Config.php new file mode 100644 index 00000000..443c7a85 --- /dev/null +++ b/src/Resource/Config.php @@ -0,0 +1,40 @@ + "EasySwoole", + 'MAIN_SERVER' => [ + 'LISTEN_ADDRESS' => '0.0.0.0', + 'PORT' => 9501, + 'SERVER_TYPE' => EASYSWOOLE_WEB_SERVER, //可选为 EASYSWOOLE_SERVER EASYSWOOLE_WEB_SERVER EASYSWOOLE_WEB_SOCKET_SERVER + 'SOCK_TYPE' => SWOOLE_TCP, + 'RUN_MODEL' => SWOOLE_PROCESS, + 'SETTING' => [ + 'worker_num' => 8, + 'max_request' => 5000, + 'task_worker_num' => 8, + 'task_max_request' => 1000, + ], + ], + 'TEMP_DIR' => null, + 'LOG_DIR' => null, + 'CONSOLE' => [ + 'ENABLE' => true, + 'LISTEN_ADDRESS' => '127.0.0.1', + 'HOST' => '127.0.0.1', + 'PORT' => 9500, + 'EXPIRE' => '120', + 'AUTH' => null, + 'PUSH_LOG' => true, + ], + 'FAST_CACHE' => [ + 'PROCESS_NUM' => 0, + 'BACKLOG' => 256, + ], + 'DISPLAY_ERROR' => true, +];