Add example of custom error pages in nginx ingress controller

This commit is contained in:
Manuel de Brito Fontes 2016-05-03 23:58:54 -03:00
parent 7e8c051e2c
commit 2e5e341ef0
4 changed files with 158 additions and 1 deletions

View file

@ -208,7 +208,7 @@ In case of an error in a request the body of the response is obtained from the `
- `X-Code` indicates the HTTP code
- `X-Format` the value of the `Accept` header
Using this two headers is possible to use a custom backend service like [this one](https://github.com/aledbf/contrib/tree/nginx-debug-server/Ingress/images/nginx-error-server) that inspect each request and returns a custom error page with the format expected by the client. This images handles `html` and `json` responses.
Using this two headers is possible to use a custom backend service like [this one](https://github.com/aledbf/contrib/tree/nginx-debug-server/Ingress/images/nginx-error-server) that inspect each request and returns a custom error page with the format expected by the client. Please check the example [custom-errors](examples/custom-errors/README.md)
## Troubleshooting