Skip to content

Commit cd93d6c

Browse files
committed
Document SSL options for Redis
1 parent f094dca commit cd93d6c

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

messenger.rst

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1675,13 +1675,41 @@ timeout Connection timeout. Float, value in ``0``
16751675
seconds default indicates unlimited
16761676
sentinel_master String, if null or empty Sentinel null
16771677
redis_sentinel support is disabled
1678+
ssl Map of TLS options. null
1679+
16781680
======================= ===================================== =================================
16791681

1682+
SSL options
1683+
-----------
1684+
1685+
The SSL options can be used change requirements for the TLS channel:
1686+
1687+
.. configuration-block::
1688+
1689+
.. code-block:: yaml
1690+
# config/packages/test/messenger.yaml
1691+
messenger:
1692+
transports:
1693+
redis:
1694+
dsn: "rediss://localhost"
1695+
options:
1696+
ssl:
1697+
allow_self_signed: true
1698+
capture_peer_cert: true
1699+
capture_peer_cert_chain: true
1700+
disable_compression: true
1701+
SNI_enabled: true
1702+
verify_peer: true
1703+
verify_peer_name: true
1704+
16801705
.. versionadded:: 7.1
16811706

16821707
The option `redis_sentinel` as an alias for `sentinel_master` was introduced
16831708
in Symfony 7.1.
16841709

1710+
.. versionadded:: 6.4
1711+
The SSL options were added in 6.4.
1712+
16851713
.. caution::
16861714

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

0 commit comments

Comments
 (0)