Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,13 @@ framework:

When using Fastly, you need to set `trusted_proxies` according to the [IP ranges used by Fastly](https://api.fastly.com/public-ip-list).

!!! tip
!!! tip "Fastly on [[= product_name_cloud =]]"

When you use Fastly on [[= product_name_cloud =]], you don't have to set `trusted_proxies` according to the IP ranges used by Fastly.
The Upsun router replaces the source IP of requests coming from Fastly with the actual client IP before they reach [[= product_name =]].

You don't have to set `trusted_proxies` when using Fastly on Upsun.
The Upsun router automatically changes the source IP of requests coming from Fastly, replacing the source IP with the actual client IP and removing any `X-FORWARD-...` header in the request before it reaches [[= product_name =]].
As of v5.0.11, [[= product_name =]] detects requests that come from Fastly on [[= product_name_cloud =]] and automatically trusts the proxy headers set by the router.
This works only if `framework.trusted_proxies` isn't empty (`TRUSTED_PROXIES` defaults to `127.0.0.1` in `.env`).

For more information about setting these variables, see [Configuration examples](#configuration-examples).

Expand Down
Loading