Merge pull request #3428 from aledbf/set-variables

Set proxy_host variable to avoid using default value from proxy_pass
This commit is contained in:
k8s-ci-robot 2018-11-18 02:17:49 -08:00 committed by GitHub
commit e9a9e02d7e

View file

@ -529,6 +529,9 @@ http {
{{ end }}
server_name {{ $hostname }};
{{/* default value of proxy_host is the name and port of a proxied server as specified in the proxy_pass directive */}}
set $proxy_host {{ $hostname }};
{{ if gt (len $cfg.BlockUserAgents) 0 }}
if ($block_ua) {
return 403;