diff --git a/docs/user-guide/nginx-configuration/configmap.md b/docs/user-guide/nginx-configuration/configmap.md index 9dad331f163..89a35b07b29 100644 --- a/docs/user-guide/nginx-configuration/configmap.md +++ b/docs/user-guide/nginx-configuration/configmap.md @@ -741,7 +741,7 @@ _**default:**_ false ## geoip2-autoreload-in-minutes -Enables the [geoip2 module](https://github.com/leev/ngx_http_geoip2_module) autoreload in MaxMind databases setting the interval in minutes. +Enables the [geoip2 module](https://github.com/leev/ngx_http_geoip2_module) autoreload in MaxMind databases setting the interval in minutes. _**default:**_ 0 @@ -1439,4 +1439,4 @@ validate that only authorized users can use `ImplementationSpecific` pathType an Sets the configuration for the GRPC Buffer Size parameter. If not set it will use the default from NGINX. _References:_ -[https://nginx.org/en/docs/http/ngx_http_grpc_module.html#grpc_buffer_size](https://nginx.org/en/docs/http/ngx_http_grpc_module.html#grpc_buffer_size) \ No newline at end of file +[https://nginx.org/en/docs/http/ngx_http_grpc_module.html#grpc_buffer_size](https://nginx.org/en/docs/http/ngx_http_grpc_module.html#grpc_buffer_size) diff --git a/rootfs/etc/nginx/template/nginx.tmpl b/rootfs/etc/nginx/template/nginx.tmpl index f117070c8a1..b3b3f8683e0 100644 --- a/rootfs/etc/nginx/template/nginx.tmpl +++ b/rootfs/etc/nginx/template/nginx.tmpl @@ -202,7 +202,7 @@ http { geoip2 /etc/ingress-controller/geoip/GeoLite2-City.mmdb { {{ if (gt $cfg.GeoIP2AutoReloadMinutes 0) }} auto_reload {{ $cfg.GeoIP2AutoReloadMinutes }}m; - {{ end }} + {{ end }} $geoip2_city_country_code source=$remote_addr country iso_code; $geoip2_city_country_name source=$remote_addr country names en; $geoip2_city_country_geoname_id source=$remote_addr country geoname_id; @@ -228,7 +228,7 @@ http { geoip2 /etc/ingress-controller/geoip/GeoIP2-City.mmdb { {{ if (gt $cfg.GeoIP2AutoReloadMinutes 0) }} auto_reload {{ $cfg.GeoIP2AutoReloadMinutes }}m; - {{ end }} + {{ end }} $geoip2_city_country_code source=$remote_addr country iso_code; $geoip2_city_country_name source=$remote_addr country names en; $geoip2_city_country_geoname_id source=$remote_addr country geoname_id; @@ -254,7 +254,7 @@ http { geoip2 /etc/ingress-controller/geoip/GeoLite2-ASN.mmdb { {{ if (gt $cfg.GeoIP2AutoReloadMinutes 0) }} auto_reload {{ $cfg.GeoIP2AutoReloadMinutes }}m; - {{ end }} + {{ end }} $geoip2_asn source=$remote_addr autonomous_system_number; $geoip2_org source=$remote_addr autonomous_system_organization; } @@ -264,7 +264,7 @@ http { geoip2 /etc/ingress-controller/geoip/GeoIP2-ASN.mmdb { {{ if (gt $cfg.GeoIP2AutoReloadMinutes 0) }} auto_reload {{ $cfg.GeoIP2AutoReloadMinutes }}m; - {{ end }} + {{ end }} $geoip2_asn source=$remote_addr autonomous_system_number; $geoip2_org source=$remote_addr autonomous_system_organization; } @@ -274,7 +274,7 @@ http { geoip2 /etc/ingress-controller/geoip/GeoIP2-ISP.mmdb { {{ if (gt $cfg.GeoIP2AutoReloadMinutes 0) }} auto_reload {{ $cfg.GeoIP2AutoReloadMinutes }}m; - {{ end }} + {{ end }} $geoip2_isp source=$remote_addr isp; $geoip2_isp_org source=$remote_addr organization; $geoip2_asn source=$remote_addr default=0 autonomous_system_number; @@ -291,7 +291,7 @@ http { geoip2 /etc/ingress-controller/geoip/GeoIP2-Anonymous-IP.mmdb { {{ if (gt $cfg.GeoIP2AutoReloadMinutes 0) }} auto_reload {{ $cfg.GeoIP2AutoReloadMinutes }}m; - {{ end }} + {{ end }} $geoip2_is_anon source=$remote_addr is_anonymous; $geoip2_is_anonymous source=$remote_addr default=0 is_anonymous; $geoip2_is_anonymous_vpn source=$remote_addr default=0 is_anonymous_vpn;