set_real_ip_from 104.16.0.0/12 set_real_ip_from 172.64.0.0/13 real_ip_header proxy_protocol; # proxy_protocol needed real_ip_recursive on;