Merge pull request #1204 from aledbf/fix-template

Fix template error
This commit is contained in:
Manuel Alejandro de Brito Fontes 2017-08-21 15:38:29 -04:00 committed by GitHub
commit a5eac354bb
2 changed files with 3 additions and 3 deletions

View file

@ -573,7 +573,7 @@ stream {
{{ if isLocationAllowed $location }}
{{ if gt (len $location.Whitelist.CIDR) 0 }}
if ({{ buildDenyVariable (print .Hostname "_" $path) }}) {
if ({{ buildDenyVariable (print $server.Hostname "_" $path) }}) {
return 403;
}
{{ end }}

View file

@ -96,7 +96,7 @@
"sslRedirect": true
},
"whitelist": {
"cidr": []
"cidr": ["1.1.1.1"]
},
"proxy": {
"conectTimeout": 5,
@ -146,7 +146,7 @@
"sslRedirect": false
},
"whitelist": {
"cidr": null
"cidr": ["1.1.1.1"]
},
"proxy": {
"conectTimeout": 5,