Browse Source

check for realip module

tags/v0.55.0
Kent Shultz 10 years ago
parent
commit
def291d210
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      nginx/templates/config.jinja

+ 1
- 1
nginx/templates/config.jinja View File

} }


http { http {
{% if 'set_real_ips' in nginx -%}
{% if 'set_real_ips' in nginx and salt['cmdmod.retcode']('nginx -V 2>&1 | grep http_realip_module') == 0 -%}
{% for ip in nginx.get('set_real_ips', {}).get('ips', []) -%} {% for ip in nginx.get('set_real_ips', {}).get('ips', []) -%}
set_real_ip_from {{ ip }}; set_real_ip_from {{ ip }};
{% endfor -%} {% endfor -%}

Loading…
Cancel
Save