This commit is contained in:
@ -14,6 +14,7 @@ use Hyperf\HttpServer\Server;
|
||||
use Hyperf\Server\Event;
|
||||
use Hyperf\Server\ServerInterface;
|
||||
use Swoole\Constant;
|
||||
use function Hyperf\Support\env;
|
||||
|
||||
return [
|
||||
'mode' => SWOOLE_PROCESS,
|
||||
@ -22,7 +23,7 @@ return [
|
||||
'name' => 'http',
|
||||
'type' => ServerInterface::SERVER_HTTP,
|
||||
'host' => '0.0.0.0',
|
||||
'port' => 9501,
|
||||
'port' => intval(env('HTTP_PORT', 9501)),
|
||||
'sock_type' => SWOOLE_SOCK_TCP,
|
||||
'callbacks' => [
|
||||
Event::ON_REQUEST => [Server::class, 'onRequest'],
|
||||
|
Reference in New Issue
Block a user