Fetching correct IP address

Fetching correct IP address if using nginx as a proxy and this setting is used:
```proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;```