diff --git a/controllers/nginx/pkg/template/template.go b/controllers/nginx/pkg/template/template.go index 5afaf9a7f8..a2bbddfe87 100644 --- a/controllers/nginx/pkg/template/template.go +++ b/controllers/nginx/pkg/template/template.go @@ -137,7 +137,7 @@ var ( "buildProxyPass": buildProxyPass, "buildRateLimitZones": buildRateLimitZones, "buildRateLimit": buildRateLimit, - "buildSSPassthroughUpstreams": buildSSPassthroughUpstreams, + "buildSSLPassthroughUpstreams": buildSSLPassthroughUpstreams, "buildResolvers": buildResolvers, "isLocationAllowed": isLocationAllowed, "buildStreamUpstreams": buildStreamUpstreams, @@ -171,7 +171,7 @@ func buildResolvers(a interface{}) string { return strings.Join(r, " ") } -func buildSSPassthroughUpstreams(b interface{}, sslb interface{}) string { +func buildSSLPassthroughUpstreams(b interface{}, sslb interface{}) string { backends := b.([]*ingress.Backend) sslBackends := sslb.([]*ingress.SSLPassthroughBackend) buf := bytes.NewBuffer(make([]byte, 0, 10)) diff --git a/controllers/nginx/rootfs/etc/nginx/template/nginx.tmpl b/controllers/nginx/rootfs/etc/nginx/template/nginx.tmpl index 2f7c620827..101038dc3a 100644 --- a/controllers/nginx/rootfs/etc/nginx/template/nginx.tmpl +++ b/controllers/nginx/rootfs/etc/nginx/template/nginx.tmpl @@ -446,7 +446,7 @@ stream { server 127.0.0.1:442; } - {{ buildSSPassthroughUpstreams $backends .PassthroughBackends }} + {{ buildSSLPassthroughUpstreams $backends .PassthroughBackends }} server { listen [::]:443 ipv6only=off{{ if $cfg.UseProxyProtocol }} proxy_protocol{{ end }};