File tree Expand file tree Collapse file tree 4 files changed +25
-2
lines changed Expand file tree Collapse file tree 4 files changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,25 @@ tracy:
8181 - Contributte\RabbitMQ\Diagnostics\BarPanel
8282```
8383
84+ #### SSL configuration
85+
86+ See examples in [ jakubkulhan/bunny documentation] ( https://github.com/jakubkulhan/bunny/tree/master/examples/ssl ) .
87+
88+ ``` neon
89+ rabbitmq:
90+ connections:
91+ default:
92+ user: guest
93+ password: guest
94+ host: localhost
95+ port: 5672
96+ lazy: false
97+ ssl:
98+ cafile: 'ca.pem'
99+ allow_self_signed: true
100+ veirfy_peer: true
101+ ```
102+
84103### Declaring Queues and Exchanges
85104
86105Since v3.0, all queues and exchanges are by default declared on demand using the console command:
Original file line number Diff line number Diff line change @@ -30,7 +30,8 @@ public function __construct(
3030 bool $ persistent ,
3131 string $ path ,
3232 bool $ tcpNoDelay ,
33- bool $ lazy = false
33+ bool $ lazy = false ,
34+ ?array $ ssl = null
3435 ) {
3536 $ this ->connectionParams = [
3637 'host ' => $ host ,
@@ -43,6 +44,7 @@ public function __construct(
4344 'persistent ' => $ persistent ,
4445 'path ' => $ path ,
4546 'tcp_nodelay ' => $ tcpNoDelay ,
47+ 'ssl ' => $ ssl ,
4648 ];
4749
4850 $ this ->bunnyClient = $ this ->createNewConnection ();
Original file line number Diff line number Diff line change @@ -59,7 +59,8 @@ private function create(string $name): IConnection
5959 (bool ) $ connectionData ['persistent ' ],
6060 $ connectionData ['path ' ],
6161 (bool ) $ connectionData ['tcpNoDelay ' ],
62- (bool ) $ connectionData ['lazy ' ]
62+ (bool ) $ connectionData ['lazy ' ],
63+ $ connectionData ['ssl ' ],
6364 );
6465 }
6566
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ final class ConnectionsHelper extends AbstractHelper
2727 'path ' => '/ ' ,
2828 'tcpNoDelay ' => false ,
2929 'lazy ' => false ,
30+ 'ssl ' => null ,
3031 ];
3132
3233
You can’t perform that action at this time.
0 commit comments