Switch to nginx compiled with the real ip module.

This commit is contained in:
Jake Moshenko 2014-05-19 13:24:07 -04:00
parent 707bca892e
commit 9d92c1cb0f
3 changed files with 3 additions and 0 deletions

Binary file not shown.

View file

@ -2,6 +2,9 @@ client_max_body_size 8G;
client_body_temp_path /var/log/nginx/client_body 1 2;
server_name _;
set_real_ip_from 172.17.0.0/16;
real_ip_header X-Forwarded-For;
keepalive_timeout 5;
if ($args ~ "_escaped_fragment_") {