Skip to content

Commit 6e9eef5

Browse files
committed
Minor RST syntax fix
1 parent 6b2e218 commit 6e9eef5

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

deployment/proxies.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -139,14 +139,14 @@ In this case, you'll need to - *very carefully* - trust *all* proxies.
139139
#. Once you've guaranteed that traffic will only come from your trusted reverse
140140
proxies, configure Symfony to *always* trust incoming request:
141141

142-
.. code-block:: yaml
143-
144-
# config/packages/framework.yaml
145-
framework:
146-
# ...
147-
# trust *all* requests (the 'REMOTE_ADDR' string is replaced at
148-
# run time by $_SERVER['REMOTE_ADDR'])
149-
trusted_proxies: '127.0.0.1,REMOTE_ADDR'
142+
.. code-block:: yaml
143+
144+
# config/packages/framework.yaml
145+
framework:
146+
# ...
147+
# trust *all* requests (the 'REMOTE_ADDR' string is replaced at
148+
# run time by $_SERVER['REMOTE_ADDR'])
149+
trusted_proxies: '127.0.0.1,REMOTE_ADDR'
150150
151151
That's it! It's critical that you prevent traffic from all non-trusted sources.
152152
If you allow outside traffic, they could "spoof" their true IP address and

0 commit comments

Comments
 (0)