2020-11-02 22:45:37 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
/**
|
|
|
|
* This file is part of Hyperf.
|
|
|
|
*
|
|
|
|
* @link https://www.hyperf.io
|
|
|
|
* @document https://hyperf.wiki
|
|
|
|
* @contact group@hyperf.io
|
|
|
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
|
|
|
*/
|
|
|
|
return [
|
|
|
|
'default' => [
|
2020-12-01 22:50:43 +08:00
|
|
|
'host' => env('AMQP_HOST','127.0.0.1'),
|
|
|
|
'port' => intval(env('AMQP_PORT',5672)),
|
|
|
|
'user' => env('AMQP_USER','guest'),
|
|
|
|
'password' => env('AMQP_PASSWORD','guest'),
|
|
|
|
'vhost' => env('AMQP_VHOST','/'),
|
2020-11-02 22:45:37 +08:00
|
|
|
'pool' => [
|
|
|
|
'min_connections' => 1,
|
|
|
|
'max_connections' => 10,
|
|
|
|
'connect_timeout' => 10.0,
|
|
|
|
'wait_timeout' => 3.0,
|
|
|
|
'heartbeat' => -1,
|
|
|
|
],
|
|
|
|
'params' => [
|
|
|
|
'insist' => false,
|
|
|
|
'login_method' => 'AMQPLAIN',
|
|
|
|
'login_response' => null,
|
|
|
|
'locale' => 'en_US',
|
|
|
|
'connection_timeout' => 3.0,
|
2020-12-08 23:32:23 +08:00
|
|
|
'read_write_timeout' => 8.0,
|
2020-11-02 22:45:37 +08:00
|
|
|
'context' => null,
|
|
|
|
'keepalive' => false,
|
|
|
|
'heartbeat' => 3,
|
|
|
|
],
|
|
|
|
],
|
|
|
|
];
|