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;
    server_name  elastic.awesome.com;
    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;
        proxy_pass http://servername.awesome.com:5601;
    }

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=[127.0.0.1], 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.