Skip to content

Commit 96233d8

Browse files
committed
feat: make isSecure flag configurable
1 parent b88facf commit 96233d8

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

config/RabbitMQConnectionConfig.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
'lazy' => env('RABBITMQ_LAZY_CONNECTION', true),
1414
'keepalive' => env('RABBITMQ_KEEPALIVE_CONNECTION', false),
1515
'heartbeat' => env('RABBITMQ_HEARTBEAT_CONNECTION', 0),
16+
'secure' => env('RABBITMQ_SECURE', false),
1617
],
1718

1819
'options' => [

src/Connectors/RabbitMQConnector.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ public function connect(array $config = []): Queue
3030
$amqpConnectionConfig->setIsLazy(config('queue.connections.rabbitmq.hosts.lazy'));
3131
$amqpConnectionConfig->setKeepalive(config('queue.connections.rabbitmq.hosts.keepalive'));
3232
$amqpConnectionConfig->setHeartbeat(config('queue.connections.rabbitmq.hosts.heartbeat'));
33+
$amqpConnectionConfig->setIsSecure(config('queue.connections.rabbitmq.hosts.secure'));
3334

3435
// set SSL Options
3536
$amqpConnectionConfig->setSslCaCert(config('queue.connections.rabbitmq.options.ssl_options.cafile'));

0 commit comments

Comments
 (0)