8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d8564e commit dd88a33Copy full SHA for dd88a33
deployment/proxies.rst
@@ -76,6 +76,17 @@ That's it! It's critical that you prevent traffic from all non-trusted sources.
76
If you allow outside traffic, they could "spoof" their true IP address and
77
other information.
78
79
+.. tip::
80
+
81
+ In applications using :ref:`Symfony Flex <symfony-flex>` you can set the
82
+ TRUSTED_PROXIES env var:
83
84
+ .. code-block:: bash
85
86
+ # .env
87
+ TRUSTED_PROXIES=127.0.0.1,REMOTE_ADDR
88
89
90
If you are also using a reverse proxy on top of your load balancer (e.g.
91
`CloudFront`_), calling ``$request->server->get('REMOTE_ADDR')`` won't be
92
enough, as it will only trust the node sitting directly above your application
0 commit comments