Skip to content

Commit

Permalink
Merge pull request #1438 from aledbf/do-not-intercept-errors
Browse files Browse the repository at this point in the history
Do not intercept errors from the custom error service
  • Loading branch information
aledbf committed Sep 28, 2017
2 parents 7d4cd1b + 8de75c2 commit ef7b9ad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions controllers/nginx/rootfs/etc/nginx/template/nginx.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -490,13 +490,16 @@ 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;
proxy_set_header X-Namespace $namespace;
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 }}
Expand Down

0 comments on commit ef7b9ad

Please sign in to comment.