From a978ac74fc2d97bb0a8b5d36b8ab6da193e65845 Mon Sep 17 00:00:00 2001 From: Kent Shultz Date: Mon, 2 Jun 2014 16:03:04 -0700 Subject: [PATCH] change attribute name for better readability --- nginx/templates/config.jinja | 2 +- pillar.example | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nginx/templates/config.jinja b/nginx/templates/config.jinja index a8cc4f1..fe9340f 100644 --- a/nginx/templates/config.jinja +++ b/nginx/templates/config.jinja @@ -14,7 +14,7 @@ events { http { {% if 'set_real_ips' in nginx -%} - {% for ip in nginx.get('set_real_ips', {}).get('ips', []) -%} + {% for ip in nginx.get('set_real_ips', {}).get('from_ips', []) -%} set_real_ip_from {{ ip }}; {% endfor -%} real_ip_header {{ nginx.get('set_real_ips', {}).get('real_ip_header', 'X-Forwarded-For') }}; diff --git a/pillar.example b/pillar.example index 6477648..c1d8e7a 100644 --- a/pillar.example +++ b/pillar.example @@ -4,7 +4,7 @@ nginx: with_luajit: False with_openresty: True set_real_ips: # NOTE: to use this, nginx must have http_realip module enabled - ips: + from_ips: - 10.10.10.0/24 real_ip_header: X-Forwarded-For modules: