Skip to content

Commit

Permalink
reversed logic
Browse files Browse the repository at this point in the history
  • Loading branch information
chriss-de committed Jan 26, 2023
1 parent 23dac1d commit 621f892
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rootfs/etc/nginx/template/nginx.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ http {
ssl_certificate {{ $cfg.DefaultSSLCertificate.PemFileName }};
ssl_certificate_key {{ $cfg.DefaultSSLCertificate.PemFileName }};

{{ if and (gt (len $cfg.CustomHTTPErrors) 0) (not $cfg.ProxyInterceptErrors) }}
{{ if and $cfg.CustomHTTPErrors (not $cfg.DisableProxyInterceptErrors) }}
proxy_intercept_errors on;
{{ end }}

Expand Down
2 changes: 1 addition & 1 deletion test/e2e/annotations/disableproxyintercepterrors.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ var _ = framework.DescribeAnnotation("disable-proxy-intercept-errors", func() {
return strings.Contains(serverConfig, fmt.Sprintf("server_name %s", host))
})

ginkgo.By("turning on proxy_intercept_errors directive")
ginkgo.By("turning off proxy_intercept_errors directive")
assert.NotContains(ginkgo.GinkgoT(), serverConfig, "proxy_intercept_errors on;")

})
Expand Down

0 comments on commit 621f892

Please sign in to comment.