From 7285372c8fa5c35329e953cdc477e15371afd6bf Mon Sep 17 00:00:00 2001 From: Manuel de Brito Fontes Date: Sun, 16 Apr 2017 19:56:01 -0300 Subject: [PATCH] If SSLPassthrough is enabled it means the upstream requires https --- controllers/nginx/pkg/template/template.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/nginx/pkg/template/template.go b/controllers/nginx/pkg/template/template.go index dcfd91a8a..91d7dcd10 100644 --- a/controllers/nginx/pkg/template/template.go +++ b/controllers/nginx/pkg/template/template.go @@ -254,7 +254,7 @@ func buildProxyPass(b interface{}, loc interface{}) string { for _, backend := range backends { if backend.Name == location.Backend { - if backend.Secure { + if backend.Secure || backend.SSLPassthrough { proto = "https" } break