{"action":"opened","issue":{"url":"https://api.github.com/repos/opscode/supermarket/issues/969","labels_url":"https://api.github.com/repos/opscode/supermarket/issues/969/labels{/name}","comments_url":"https://api.github.com/repos/opscode/supermarket/issues/969/comments","events_url":"https://api.github.com/repos/opscode/supermarket/issues/969/events","html_url":"https://github.com/opscode/supermarket/issues/969","id":54622052,"number":969,"title":"Allow using the X-Forwarded-For instead of remote-addr in nginx logs","user":{"login":"smith","id":9912,"avatar_url":"https://avatars.githubusercontent.com/u/9912?v=3","gravatar_id":"","url":"https://api.github.com/users/smith","html_url":"https://github.com/smith","followers_url":"https://api.github.com/users/smith/followers","following_url":"https://api.github.com/users/smith/following{/other_user}","gists_url":"https://api.github.com/users/smith/gists{/gist_id}","starred_url":"https://api.github.com/users/smith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smith/subscriptions","organizations_url":"https://api.github.com/users/smith/orgs","repos_url":"https://api.github.com/users/smith/repos","events_url":"https://api.github.com/users/smith/events{/privacy}","received_events_url":"https://api.github.com/users/smith/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-16T20:37:22Z","updated_at":"2015-01-16T20:37:22Z","closed_at":null,"body":"In the nginx configuration (https://github.com/opscode/omnibus-supermarket/blob/b7c93027039315a4e29361edc5fd1ef9816ab336/cookbooks/omnibus-supermarket/templates/default/rails.nginx.conf.erb#L13) remote-addr is used, which works fine, except if you're behind a load balancer, in which case you'll be getting the LB address instead of the address of the originating request.\r\n\r\nAllow a configuration option to let you use the X-Forwarded-For header address instead.\r\n\r\nSee also opscode/opscode-omnibus#459."}}