Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix setting X-Forwarded-For inside of ALB setup
If somebody is setting X-Forwarded-For it will lead to X-Real-Ip containing a list instead of a fixed IP. We can instead trust the last item in the X-Forwarded-For list since this comes from ALB as we are running it in append mode (see: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/application-load-balancers.html)
- Loading branch information