proxy_set_header   X-Real-IP        $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;

real_ip_header X-Forwarded-For;
real_ip_recursive on;
set_real_ip_from 125.31.0.42;
set_real_ip_from 172.16.0.0/24;