If SSLPassthrough is enabled it means the upstream requires https

This commit is contained in:
Manuel de Brito Fontes 2017-04-16 19:56:01 -03:00
parent 2db989caa6
commit 7285372c8f

View file

@ -254,7 +254,7 @@ func buildProxyPass(b interface{}, loc interface{}) string {
for _, backend := range backends { for _, backend := range backends {
if backend.Name == location.Backend { if backend.Name == location.Backend {
if backend.Secure { if backend.Secure || backend.SSLPassthrough {
proto = "https" proto = "https"
} }
break break