fixes to satisfy PR comments
This commit is contained in:
parent
c18544ad03
commit
37ea3d6b22
4 changed files with 7 additions and 5 deletions
|
@ -1122,7 +1122,9 @@ Example usage: `custom-http-errors: 404,415`
|
||||||
|
|
||||||
## disable-proxy-intercept-errors
|
## disable-proxy-intercept-errors
|
||||||
|
|
||||||
Allows to disable proxy-intercept-errors if [custom-http-errors](#custom-http-errors) are set. Disabling [proxy_intercept_errors](https://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_intercept_errors) allows to pass upstream errors to client even if [custom-http-errors](#custom-http-errors) are set.
|
Allows to disable [proxy-intercept-errors](https://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_intercept_errors).
|
||||||
|
|
||||||
|
Disabling [proxy_intercept_errors](https://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_intercept_errors) allows to pass upstream errors to client even if [custom-http-errors](#custom-http-errors) are set.
|
||||||
|
|
||||||
Example usage: `disable-proxy-intercept-errors: "true"`
|
Example usage: `disable-proxy-intercept-errors: "true"`
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
Copyright 2022 The Kubernetes Authors.
|
Copyright 2023 The Kubernetes Authors.
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -34,11 +34,11 @@ type Backend struct {
|
||||||
// toggles whether or not to remove trailing slashes during TLS redirects
|
// toggles whether or not to remove trailing slashes during TLS redirects
|
||||||
PreserveTrailingSlash bool `json:"preserve-trailing-slash"`
|
PreserveTrailingSlash bool `json:"preserve-trailing-slash"`
|
||||||
|
|
||||||
// for use when using CustomHTTPErrors without intecepting service errors
|
// allows usage of CustomHTTPErrors without intecepting service errors
|
||||||
// e.g. custom 404 and 503 when service-a does not exist or is not available
|
// e.g. custom 404 and 503 when service-a does not exist or is not available
|
||||||
// but service-a can return 404 and 503 error codes without intercept
|
// but service-a can return 404 and 503 error codes without intercept
|
||||||
// http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_intercept_errors
|
// http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_intercept_errors
|
||||||
// By default this is enabled when CustomHTTPErrors is enabled
|
// By default this is disabled
|
||||||
DisableProxyInterceptErrors bool `json:"disable-proxy-intercept-errors"`
|
DisableProxyInterceptErrors bool `json:"disable-proxy-intercept-errors"`
|
||||||
|
|
||||||
// http://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size
|
// http://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
Copyright 2018 The Kubernetes Authors.
|
Copyright 2023 The Kubernetes Authors.
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
|
|
Loading…
Reference in a new issue