capitalizes IP in EnableRealIPRecursive to match upstream changes

This commit is contained in:
Tomás Pinho 2023-11-29 08:26:40 +00:00
parent ae7fee940f
commit 93f0afc60f
2 changed files with 2 additions and 2 deletions

View file

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

View file

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