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