Hello
I want to get the real ip of the client but I'm all ways getting the ip of the ngnix server.
I trayed using set_real_ip:
http {
upstream myapp1 {
server 177.17.777.13:8080;
}
server {
listen 80;
real_ip_recursive on;
set_real_ip_from 177.17.777.13;
real_ip_header X-Forwarded-For;
location / {
proxy_pass http://myapp1;
}
}
}