Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Real ip from ebs #8

Open
No1zzz opened this issue Jan 29, 2018 · 1 comment
Open

Real ip from ebs #8

No1zzz opened this issue Jan 29, 2018 · 1 comment

Comments

@No1zzz
Copy link

No1zzz commented Jan 29, 2018

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.

@daremachine
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants