How to get real ip address behind a proxy server with rails

Hi,
I’m having “Unknown User” problem at my issues detail page.
image
Using a system like below.

Client → Nginx → Rails

And using the gem ‘sentry-raven’ on my rails app.
At nginx, I’m passing X-Forwarded-For & X-Real-IP http headers but couldn’t find any configuration option to enable them on sentry gem.
I’ve tried to pass through using the user_context property like this.

Raven.user_context(
id: 11111,
email: ‘foo@example.com’,
username: ‘useruser’,
ip_address: ‘11.11.11.11’
)

Reffering to: https://docs.sentry.io/clients/ruby/context/

also like this.

Raven.user_context ip_address: ‘11.11.11.11’

Success to send other variables, except “ip_address”.
Is there anyway to display the right client ip address at sentry admin page?

Looked up on:

Thanks