Nginx forwarding IP to elasticsearch

Have an nginx proxy setup because people can't remember ports around here, has anyone setup something similar and had it forward ip's properly?

server {
   listen       80;
    location / {
	proxy_set_header Host $host;
	proxy_set_header X-Real-IP  $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
	proxy_redirect off;

However it still doesn't pass the IP properly, access logs still show

[2017-09-13T15:04:26,208] [transport] [access_granted] origin_type=[rest], origin_address=[], principal=[username], action=[cluster:monitor/nodes/info], request=[NodesInfoRequest]

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.