only set real_ip from local subnet

This commit is contained in:
Jimmy Zelinskie 2015-01-20 17:46:06 -05:00
parent ad92ca33d3
commit a5569b124d

View file

@ -4,7 +4,7 @@ server {
listen 80 default_server proxy_protocol;
server_name _;
set_real_ip_from 0.0.0.0/0;
set_real_ip_from 10.0.0.0/8;
real_ip_header proxy_protocol;
log_format elb '$proxy_protocol_addr - $remote_user [$time_local] '