From 0a6f305fcf9146b617124f9bba0833e851ccf02f Mon Sep 17 00:00:00 2001 From: jschaul Date: Tue, 26 Jul 2022 14:34:04 +0200 Subject: [PATCH] do rate limiting exemptions by proxy_protocol_ip (#2581) --- changelog.d/3-bug-fixes/nginz-rate-limit-exemptions | 1 + charts/nginz/templates/conf/_nginx.conf.tpl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog.d/3-bug-fixes/nginz-rate-limit-exemptions diff --git a/changelog.d/3-bug-fixes/nginz-rate-limit-exemptions b/changelog.d/3-bug-fixes/nginz-rate-limit-exemptions new file mode 100644 index 00000000000..d3d531a297c --- /dev/null +++ b/changelog.d/3-bug-fixes/nginz-rate-limit-exemptions @@ -0,0 +1 @@ +charts/nginz: rate limit exemptions should be by comparing with proxy_protocol_addr diff --git a/charts/nginz/templates/conf/_nginx.conf.tpl b/charts/nginz/templates/conf/_nginx.conf.tpl index e6e69094476..119ae69b5a6 100644 --- a/charts/nginz/templates/conf/_nginx.conf.tpl +++ b/charts/nginz/templates/conf/_nginx.conf.tpl @@ -93,7 +93,7 @@ http { # Rate Limiting Exemptions # - geo $rate_limit { + geo $proxy_protocol_addr $rate_limit { default 1; # IPs to exempt can be added in the .Values.nginx_conf.rate_limit and .Values.nginx_conf.simulators helm values