Commit graph

9 commits

Author SHA1 Message Date
Kornel Maleszka
857c044144 Register metrics for custom-error-pages
Request count and timer weren't visible on /metrics endpoint since they
haven't been registered in prometheus DefaultRegister.
2020-03-17 10:58:39 +01:00
Julio H Morimoto
7245340e88
Fix default Content-Type for custom-error-pages example
This should fix issue [4039](https://github.com/kubernetes/ingress-nginx/issues/4039). This default backend fails to send the correct `Content-Type` header when it fails to decode the `Accept` request header.

This patch simply forces `text/html` in that specific scenario.
2019-04-25 14:53:22 -03:00
Gregor Noczinski
bcc7d087ac Aligned to golint 2019-03-22 11:59:58 +01:00
Gregor Noczinski
1bef3e75b2 Set X-Request-ID for the default-backend, too. 2019-03-22 11:33:11 +01:00
Manuel de Brito Fontes
ef4476ecc4
Add additional header when debug is enabled 2018-06-17 15:51:32 -04:00
Antoine Cotten
55679aa268 Update documentation for custom error pages (#2630)
* Update documentation for custom error pages

* custom-error-pages: Fix path to error pages

Bump version to 0.2
2018-06-12 18:03:48 -04:00
Arno Uhlig
5101e74347 Ingress custom backend (#2086)
* fix out of range

* add metrics and health endpoint

* ensure extension dot prefix
2018-02-14 09:16:44 -08:00
Manuel de Brito Fontes
a4f67c0853 Fix verification of boilerplate, style and file headers 2017-12-03 13:58:23 -03:00
Manuel de Brito Fontes
bc464c7cb8 Add example for nginx custom error pages 2017-09-13 20:11:32 -03:00