====== 作弊条:让反向代理后的 nginx 记录用户真实IP ====== 假定:代理服务器地址是 192.0.2.1,代理服务器会设置 X-Forwarded-For 头。 set_real_ip_from 192.0.2.1; real_ip_header X-Forwarded-For; 参考: https://nginx.org/en/docs/http/ngx_http_realip_module.html#set_real_ip_from