Bladeren bron

change attribute name for better readability

susefix
Kent Shultz 10 jaren geleden
bovenliggende
commit
a978ac74fc
2 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. +1
    -1
      nginx/templates/config.jinja
  2. +1
    -1
      pillar.example

+ 1
- 1
nginx/templates/config.jinja Bestand weergeven

@@ -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') }};

+ 1
- 1
pillar.example Bestand weergeven

@@ -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:

Laden…
Annuleren
Opslaan