Commit 65c4a26 1 parent 4f60fd2 commit 65c4a26 Copy full SHA for 65c4a26
File tree 4 files changed +25
-2
lines changed
4 files changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,25 @@ tracy:
81
81
- Contributte\RabbitMQ\Diagnostics\BarPanel
82
82
```
83
83
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
+
84
103
### Declaring Queues and Exchanges
85
104
86
105
Since 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(
30
30
bool $ persistent ,
31
31
string $ path ,
32
32
bool $ tcpNoDelay ,
33
- bool $ lazy = false
33
+ bool $ lazy = false ,
34
+ ?array $ ssl = null
34
35
) {
35
36
$ this ->connectionParams = [
36
37
'host ' => $ host ,
@@ -43,6 +44,7 @@ public function __construct(
43
44
'persistent ' => $ persistent ,
44
45
'path ' => $ path ,
45
46
'tcp_nodelay ' => $ tcpNoDelay ,
47
+ 'ssl ' => $ ssl ,
46
48
];
47
49
48
50
$ this ->bunnyClient = $ this ->createNewConnection ();
Original file line number Diff line number Diff line change @@ -59,7 +59,8 @@ private function create(string $name): IConnection
59
59
(bool ) $ connectionData ['persistent ' ],
60
60
$ connectionData ['path ' ],
61
61
(bool ) $ connectionData ['tcpNoDelay ' ],
62
- (bool ) $ connectionData ['lazy ' ]
62
+ (bool ) $ connectionData ['lazy ' ],
63
+ $ connectionData ['ssl ' ],
63
64
);
64
65
}
65
66
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ final class ConnectionsHelper extends AbstractHelper
27
27
'path ' => '/ ' ,
28
28
'tcpNoDelay ' => false ,
29
29
'lazy ' => false ,
30
+ 'ssl ' => null ,
30
31
];
31
32
32
33
You can’t perform that action at this time.
0 commit comments