Skip to content

Conversation

haarg
Copy link
Member

@haarg haarg commented Nov 30, 2017

Use X-Forwarded-For etc headers to override standard headers. Existing
Plack middleware don't quite cover the use case we have. ReverseProxy
will only take the nearest link from X-Forwarded-For, which for us will
be the Fastly servers. Fastly is configured to override any incoming
X-Forwarded-For header, so we can safely use the farthest link, which
will be the end user.

Other middleware don't support the other headers we would like to use.

Use X-Forwarded-For etc headers to override standard headers.  Existing
Plack middleware don't quite cover the use case we have.  ReverseProxy
will only take the nearest link from X-Forwarded-For, which for us will
be the Fastly servers.  Fastly is configured to override any incoming
X-Forwarded-For header, so we can safely use the farthest link, which
will be the end user.

Other middleware don't support the other headers we would like to use.
@oalders oalders merged commit 950c2f0 into master Dec 4, 2017
@oalders oalders deleted the haarg/reverse-proxy branch December 4, 2017 03:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants