Ian Roberts
e5e33051b9
Allow overriding of the default response format ( #7245 )
...
Rather than hard-coding the default response format as HTML, allow the default to be overridden by an environment variable. For example, given a REST API endpoint that defaults to responding in JSON, you may wish to configure the error messages to be JSON by default as well.
2021-08-06 13:27:29 -07:00
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
Manuel Alejandro de Brito Fontes
dc20551288
Cleanup of docker images
2019-09-03 19:10:40 -04:00
Manuel Alejandro de Brito Fontes
d5c7fa8cfb
Fix scripts to be able to run tests in docker
2019-07-17 11:06:53 -04:00
Manuel Alejandro de Brito Fontes
e7a5bec5c7
Release custom error pages image v0.4 [skip-ci] ( #4042 )
2019-04-25 16:02:03 -04: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
330b7fafb3
Update nginx image
2018-08-14 23:12:39 -03: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
Manuel Alejandro de Brito Fontes
e2937cc8f6
Fix custom-error-pages image publication script ( #2289 )
2018-04-03 15:09:34 -03: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
febd7cf3e2
Report information about errors deployments
2017-10-25 19:43:01 -03:00
Manuel de Brito Fontes
bc464c7cb8
Add example for nginx custom error pages
2017-09-13 20:11:32 -03:00