aws-samples/eb-docker-nginx-proxy

Real ip from ebs

No1zzz opened this issue · 1 comments

Hello,
How can i get real ip from client?
In nginx i have:
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_set_header X-Forwarded-Host $server_name;
real_ip_header X-Forwarded-For;
set_real_ip_from 10.0.0.0/8;
Already fixed log format but still see ip from docker network, i mean ip is 172.17.0.1.

I had same issue. Change 10.0.0.0/8 for IP your elb. My start with 172... It work for me.