Joined May 2011
·

thattommyhall

FutureLearn
·
London
·
·
·

Posted to AWS ELB + nginx real IP address over 1 year ago

I think

real_ip_header     X-Forwarded-For;
set_real_ip_from   10.0.0.0/8;
set_real_ip_from   172.16.0.0/12;
set_real_ip_from   192.168.0.0/16;
real_ip_recursive on;

(realiprecursive because the ELB might bounce the traffic off more than 1 IP)

And now you can limit the port to a security group of the ELB so noone else can hit it anyway.

Achievements
130 Karma
0 Total ProTip Views