# Replace loadbalancer IP(real-ip) with actual client IP. set_real_ip_from 0.0.0.0/0; real_ip_header X-Forwarded-For; real_ip_recursive on;