Skip to content

Commit 5fe782e

Browse files
committed
Merge branch '7.1' into 7.2
* 7.1: [Messenger] Document SSL options for Redis
2 parents 399cf49 + a4e52d2 commit 5fe782e

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

messenger.rst

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1688,13 +1688,36 @@ timeout Connection timeout. Float, value in ``0``
16881688
seconds default indicates unlimited
16891689
sentinel_master String, if null or empty Sentinel null
16901690
redis_sentinel support is disabled
1691+
ssl Map of TLS options. null
16911692
======================= ===================================== =================================
16921693

16931694
.. versionadded:: 7.1
16941695

16951696
The option ``redis_sentinel`` as an alias for ``sentinel_master`` was introduced
16961697
in Symfony 7.1.
16971698

1699+
The ``ssl`` option can be used to change requirements for the TLS channel, e.g. in tests:
1700+
1701+
.. configuration-block::
1702+
1703+
.. code-block:: yaml
1704+
1705+
# config/packages/test/messenger.yaml
1706+
framework:
1707+
messenger:
1708+
transports:
1709+
redis:
1710+
dsn: "rediss://localhost"
1711+
options:
1712+
ssl:
1713+
allow_self_signed: true
1714+
capture_peer_cert: true
1715+
capture_peer_cert_chain: true
1716+
disable_compression: true
1717+
SNI_enabled: true
1718+
verify_peer: true
1719+
verify_peer_name: true
1720+
16981721
.. caution::
16991722

17001723
There should never be more than one ``messenger:consume`` command running with the same

0 commit comments

Comments
 (0)