diff --git a/internal/ingress/controller/config/config.go b/internal/ingress/controller/config/config.go index 85bd4bbad..303afb563 100644 --- a/internal/ingress/controller/config/config.go +++ b/internal/ingress/controller/config/config.go @@ -559,7 +559,7 @@ type Configuration struct { // Sets whether to use recursive search in the real ip module // https://nginx.org/en/docs/http/ngx_http_realip_module.html#real_ip_recursive // Default: true - EnableRealIpRecursive bool `json:"enable-real-ip-recursive"` + EnableRealIPRecursive bool `json:"enable-real-ip-recursive"` // Sets the header field for identifying the originating IP address of a client // Default is X-Forwarded-For diff --git a/rootfs/etc/nginx/template/nginx.tmpl b/rootfs/etc/nginx/template/nginx.tmpl index 4c22cf62c..a393e1267 100644 --- a/rootfs/etc/nginx/template/nginx.tmpl +++ b/rootfs/etc/nginx/template/nginx.tmpl @@ -143,7 +143,7 @@ http { real_ip_header {{ $cfg.ForwardedForHeader }}; {{ end }} - {{ if $cfg.EnableRealIpRecursive }} + {{ if $cfg.EnableRealIPRecursive }} real_ip_recursive on; {{ else }} real_ip_recursive off;