This commit is contained in:
Aether
2025-09-25 16:44:18 +08:00
parent e15cea74f6
commit c5f5026828
3 changed files with 20 additions and 20 deletions

View File

@@ -15,20 +15,20 @@ use function Hyperf\Support\env;
return [
'mode' => SWOOLE_PROCESS,
'servers' => [
[
'name' => 'http',
'type' => Server::SERVER_HTTP,
'host' => '0.0.0.0',
'port' => 9501,
'sock_type' => SWOOLE_SOCK_TCP,
'callbacks' => [
Event::ON_REQUEST => [Hyperf\HttpServer\Server::class, 'onRequest'],
],
'options' => [
// Whether to enable request lifecycle event
'enable_request_lifecycle' => false,
],
],
// [
// 'name' => 'http',
// 'type' => Server::SERVER_HTTP,
// 'host' => '0.0.0.0',
// 'port' => 9501,
// 'sock_type' => SWOOLE_SOCK_TCP,
// 'callbacks' => [
// Event::ON_REQUEST => [Hyperf\HttpServer\Server::class, 'onRequest'],
// ],
// 'options' => [
// // Whether to enable request lifecycle event
// 'enable_request_lifecycle' => false,
// ],
// ],
[
'name' => 'jsonrpc-http',
'type' => Server::SERVER_HTTP,