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 c0f24a3 commit 014bd29Copy full SHA for 014bd29
deployment/proxies.rst
@@ -81,6 +81,17 @@ That's it! It's critical that you prevent traffic from all non-trusted sources.
81
If you allow outside traffic, they could "spoof" their true IP address and
82
other information.
83
84
+.. tip::
85
+
86
+ In applications using :ref:`Symfony Flex <symfony-flex>` you can set the
87
+ TRUSTED_PROXIES env var:
88
89
+ .. code-block:: bash
90
91
+ # .env
92
+ TRUSTED_PROXIES=127.0.0.1,REMOTE_ADDR
93
94
95
If you are also using a reverse proxy on top of your load balancer (e.g.
96
`CloudFront`_), calling ``$request->server->get('REMOTE_ADDR')`` won't be
97
enough, as it will only trust the node sitting directly above your application
0 commit comments