{"action":"created","issue":{"url":"https://api.github.com/repos/cloudfoundry/gorouter/issues/125","repository_url":"https://api.github.com/repos/cloudfoundry/gorouter","labels_url":"https://api.github.com/repos/cloudfoundry/gorouter/issues/125/labels{/name}","comments_url":"https://api.github.com/repos/cloudfoundry/gorouter/issues/125/comments","events_url":"https://api.github.com/repos/cloudfoundry/gorouter/issues/125/events","html_url":"https://github.com/cloudfoundry/gorouter/issues/125","id":144554232,"number":125,"title":"Add support for the PROXY protocol","user":{"login":"Jonty","id":1553,"avatar_url":"https://avatars.githubusercontent.com/u/1553?v=3","gravatar_id":"","url":"https://api.github.com/users/Jonty","html_url":"https://github.com/Jonty","followers_url":"https://api.github.com/users/Jonty/followers","following_url":"https://api.github.com/users/Jonty/following{/other_user}","gists_url":"https://api.github.com/users/Jonty/gists{/gist_id}","starred_url":"https://api.github.com/users/Jonty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jonty/subscriptions","organizations_url":"https://api.github.com/users/Jonty/orgs","repos_url":"https://api.github.com/users/Jonty/repos","events_url":"https://api.github.com/users/Jonty/events{/privacy}","received_events_url":"https://api.github.com/users/Jonty/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-30T11:21:57Z","updated_at":"2016-03-30T11:22:00Z","closed_at":null,"body":"Gorouter does not support the [PROXY protocol](http://blog.haproxy.com/haproxy/proxy-protocol/) meaning that SSL terminators placed in front of it cannot pass on the client IP address.\r\n\r\nThis is a problem for us because we have an [AWS ELB](https://aws.amazon.com/elasticloadbalancing/) in front of gorouter operating in TCP mode, as ELB in HTTP mode (which would inject `X-Forwarded-For` headers) does not support websockets.\r\n\r\nA horrid workaround is to colocate something like HAProxy that understands the PROXY protocol and can add an `X-Forwarded-For` header using the address passed via PROXY."},"comment":{"url":"https://api.github.com/repos/cloudfoundry/gorouter/issues/comments/203386279","html_url":"https://github.com/cloudfoundry/gorouter/issues/125#issuecomment-203386279","issue_url":"https://api.github.com/repos/cloudfoundry/gorouter/issues/125","id":203386279,"user":{"login":"cf-gitbot","id":5589368,"avatar_url":"https://avatars.githubusercontent.com/u/5589368?v=3","gravatar_id":"","url":"https://api.github.com/users/cf-gitbot","html_url":"https://github.com/cf-gitbot","followers_url":"https://api.github.com/users/cf-gitbot/followers","following_url":"https://api.github.com/users/cf-gitbot/following{/other_user}","gists_url":"https://api.github.com/users/cf-gitbot/gists{/gist_id}","starred_url":"https://api.github.com/users/cf-gitbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cf-gitbot/subscriptions","organizations_url":"https://api.github.com/users/cf-gitbot/orgs","repos_url":"https://api.github.com/users/cf-gitbot/repos","events_url":"https://api.github.com/users/cf-gitbot/events{/privacy}","received_events_url":"https://api.github.com/users/cf-gitbot/received_events","type":"User","site_admin":false},"created_at":"2016-03-30T11:22:00Z","updated_at":"2016-03-30T11:22:00Z","body":"We have created an issue in Pivotal Tracker to manage this. You can view the current status of your issue at: https://www.pivotaltracker.com/story/show/116601821."}}