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