capitalizes IP in EnableRealIPRecursive to match upstream changes
This commit is contained in:
parent
ae7fee940f
commit
93f0afc60f
2 changed files with 2 additions and 2 deletions
|
@ -559,7 +559,7 @@ type Configuration struct {
|
||||||
// Sets whether to use recursive search in the real ip module
|
// 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
|
// https://nginx.org/en/docs/http/ngx_http_realip_module.html#real_ip_recursive
|
||||||
// Default: true
|
// 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
|
// Sets the header field for identifying the originating IP address of a client
|
||||||
// Default is X-Forwarded-For
|
// Default is X-Forwarded-For
|
||||||
|
|
|
@ -143,7 +143,7 @@ http {
|
||||||
real_ip_header {{ $cfg.ForwardedForHeader }};
|
real_ip_header {{ $cfg.ForwardedForHeader }};
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if $cfg.EnableRealIpRecursive }}
|
{{ if $cfg.EnableRealIPRecursive }}
|
||||||
real_ip_recursive on;
|
real_ip_recursive on;
|
||||||
{{ else }}
|
{{ else }}
|
||||||
real_ip_recursive off;
|
real_ip_recursive off;
|
||||||
|
|
Loading…
Reference in a new issue