commit
a5eac354bb
2 changed files with 3 additions and 3 deletions
|
@ -573,7 +573,7 @@ stream {
|
||||||
|
|
||||||
{{ if isLocationAllowed $location }}
|
{{ if isLocationAllowed $location }}
|
||||||
{{ if gt (len $location.Whitelist.CIDR) 0 }}
|
{{ if gt (len $location.Whitelist.CIDR) 0 }}
|
||||||
if ({{ buildDenyVariable (print .Hostname "_" $path) }}) {
|
if ({{ buildDenyVariable (print $server.Hostname "_" $path) }}) {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -96,7 +96,7 @@
|
||||||
"sslRedirect": true
|
"sslRedirect": true
|
||||||
},
|
},
|
||||||
"whitelist": {
|
"whitelist": {
|
||||||
"cidr": []
|
"cidr": ["1.1.1.1"]
|
||||||
},
|
},
|
||||||
"proxy": {
|
"proxy": {
|
||||||
"conectTimeout": 5,
|
"conectTimeout": 5,
|
||||||
|
@ -146,7 +146,7 @@
|
||||||
"sslRedirect": false
|
"sslRedirect": false
|
||||||
},
|
},
|
||||||
"whitelist": {
|
"whitelist": {
|
||||||
"cidr": null
|
"cidr": ["1.1.1.1"]
|
||||||
},
|
},
|
||||||
"proxy": {
|
"proxy": {
|
||||||
"conectTimeout": 5,
|
"conectTimeout": 5,
|
||||||
|
|
Loading…
Reference in a new issue