修改服务配置端口
Some checks are pending
Build Docker / build (push) Waiting to run

This commit is contained in:
2025-07-12 13:57:46 +08:00
parent 8a3ab17b25
commit 58c8eecf88

View File

@ -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'],