Merge pull request #604 from jonaskint/master

Fixing wildcard in hostname for the upstream map
This commit is contained in:
Manuel Alejandro de Brito Fontes 2017-04-14 21:07:41 -03:00 committed by GitHub
commit 4817ddff3a

View file

@ -479,6 +479,7 @@ stream {
{{ if gt (len $passthroughBackends) 0 }} {{ if gt (len $passthroughBackends) 0 }}
# map FQDN that requires SSL passthrough # map FQDN that requires SSL passthrough
map $ssl_preread_server_name $stream_upstream { map $ssl_preread_server_name $stream_upstream {
hostnames;
{{ range $i, $passthrough := .PassthroughBackends }} {{ range $i, $passthrough := .PassthroughBackends }}
{{ $passthrough.Hostname }} {{ $passthrough.Backend }}; {{ $passthrough.Hostname }} {{ $passthrough.Backend }};
{{ end }} {{ end }}