Skip to content

Commit 887e4d3

Browse files
tarjeijaviereguiluz
authored andcommitted
[Messenger] Document SSL options for Redis
1 parent 78e0a19 commit 887e4d3

File tree

1 file changed

+28
-2
lines changed

1 file changed

+28
-2
lines changed

messenger.rst

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1690,10 +1690,36 @@ read_timeout Float, value in seconds ``0``
16901690
timeout Connection timeout. Float, value in ``0``
16911691
seconds default indicates unlimited
16921692
sentinel_master String, if null or empty Sentinel null
1693-
support is disabled
1693+
redis_sentinel support is disabled
1694+
ssl Map of TLS options. null
16941695
======================= ===================================== =================================
16951696

1696-
.. versionadded:: 6.1
1697+
SSL options
1698+
-----------
1699+
1700+
The SSL options can be used change requirements for the TLS channel:
1701+
1702+
.. configuration-block::
1703+
1704+
.. code-block:: yaml
1705+
1706+
# config/packages/test/messenger.yaml
1707+
framework:
1708+
messenger:
1709+
transports:
1710+
redis:
1711+
dsn: "rediss://localhost"
1712+
options:
1713+
ssl:
1714+
allow_self_signed: true
1715+
capture_peer_cert: true
1716+
capture_peer_cert_chain: true
1717+
disable_compression: true
1718+
SNI_enabled: true
1719+
verify_peer: true
1720+
verify_peer_name: true
1721+
1722+
.. versionadded:: 7.1
16971723

16981724
The ``persistent_id``, ``retry_interval``, ``read_timeout``, ``timeout``, and
16991725
``sentinel_master`` options were introduced in Symfony 6.1.

0 commit comments

Comments
 (0)