Ability to use "X-Forwarded-For" as a source of IP for white list.
This commit is contained in:
parent
4802484729
commit
d2766b1b4f
50 changed files with 1496 additions and 599 deletions
|
@ -56,9 +56,13 @@
|
|||
"{{.}}",
|
||||
{{end}}]
|
||||
|
||||
whitelistSourceRange = [{{range $frontend.WhitelistSourceRange }}
|
||||
"{{.}}",
|
||||
{{end}}]
|
||||
{{if $frontend.WhiteList }}
|
||||
[frontends."{{ $frontendName }}".whiteList]
|
||||
sourceRange = [{{range $frontend.WhiteList.SourceRange }}
|
||||
"{{.}}",
|
||||
{{end}}]
|
||||
useXForwardedFor = {{ $frontend.WhiteList.UseXForwardedFor }}
|
||||
{{end}}
|
||||
|
||||
{{if $frontend.Redirect }}
|
||||
[frontends."{{ $frontendName }}".redirect]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue