Add load balancer support #5

Open
jjkiers wants to merge 1 commit from brutuscat/load-balancer-forwarded-headers into master
jjkiers commented 2014-10-16 09:39:14 +00:00 (Migrated from code.kiers.eu)

Add load balancer support using non-standard X-Forwarded headers.

Basically it adds support for AWS Elastic Load Balancer. See docs here x-forwarded-headers and a proposed standard rfc7239 which varies a bit since it does not seem to add support for the X-Forwarded-Port header.

I also confirm that this does work behind a ELB that does SSL termination.

Add load balancer support using non-standard X-Forwarded headers. Basically it adds support for AWS Elastic Load Balancer. See docs here [x-forwarded-headers](https://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/TerminologyandKeyConcepts.html#x-forwarded-headers) and a proposed standard [rfc7239](http://tools.ietf.org/html/rfc7239) which varies a bit since it does not seem to add support for the `X-Forwarded-Port` header. I also confirm that this does work behind a ELB that does SSL termination.
jjkiers commented 2014-10-16 15:55:55 +00:00 (Migrated from code.kiers.eu)

Hi, thank you for your contribution! I'm very busy at the moment, so I'll look at it during the weekend.

Hi, thank you for your contribution! I'm very busy at the moment, so I'll look at it during the weekend.
jjkiers commented 2014-11-10 12:55:43 +00:00 (Migrated from code.kiers.eu)

@brutuscat I'm sorry, I kind of forgot about this PR. Are you still interested in this?

If so, please add tests and then I'll merge it.

@brutuscat I'm sorry, I kind of forgot about this PR. Are you still interested in this? If so, please add tests and then I'll merge it.
jjkiers commented 2014-11-10 15:52:26 +00:00 (Migrated from code.kiers.eu)

@jacobkiers I have it working just fine in my fork, so yes I'm interested as anyone who is behind a load balancer will be too I guess... You might also want to add support for this too http://tools.ietf.org/html/rfc7239

@jacobkiers I have it working just fine in my fork, so yes I'm interested as anyone who is behind a load balancer will be too I guess... You might also want to add support for this too http://tools.ietf.org/html/rfc7239
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin brutuscat/load-balancer-forwarded-headers:brutuscat/load-balancer-forwarded-headers
git switch brutuscat/load-balancer-forwarded-headers

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch master
git merge --no-ff brutuscat/load-balancer-forwarded-headers
git switch brutuscat/load-balancer-forwarded-headers
git rebase master
git switch master
git merge --ff-only brutuscat/load-balancer-forwarded-headers
git switch brutuscat/load-balancer-forwarded-headers
git rebase master
git switch master
git merge --no-ff brutuscat/load-balancer-forwarded-headers
git switch master
git merge --squash brutuscat/load-balancer-forwarded-headers
git switch master
git merge --ff-only brutuscat/load-balancer-forwarded-headers
git switch master
git merge brutuscat/load-balancer-forwarded-headers
git push origin master
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
jjkiers/OAuth!5
No description provided.