Merge pull request #1438 from aledbf/do-not-intercept-errors
Do not intercept errors from the custom error service
This commit is contained in:
commit
ef7b9adc66
1 changed files with 3 additions and 0 deletions
|
@ -490,6 +490,8 @@ stream {
|
|||
location @custom_{{ $errCode }} {
|
||||
internal;
|
||||
|
||||
proxy_intercept_errors off;
|
||||
|
||||
proxy_set_header X-Code {{ $errCode }};
|
||||
proxy_set_header X-Format $http_accept;
|
||||
proxy_set_header X-Original-URI $request_uri;
|
||||
|
@ -497,6 +499,7 @@ stream {
|
|||
proxy_set_header X-Ingress-Name $ingress_name;
|
||||
proxy_set_header X-Service-Name $service_name;
|
||||
|
||||
rewrite (.*) / break;
|
||||
proxy_pass http://upstream-default-backend;
|
||||
}
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in a new issue