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 34598e71e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;