Commit graph

11 commits

Author SHA1 Message Date
Jennifer Kirsch
c9a00fbc73
Fix old tag of custom error pages used in example (#7460)
* Fix old tag of custom error pages used in example

* Move nginx-errors to k8s registry

Since the setup for the custom-error-messages was really different from
the other images that are build using cloudbuild, I changed it to "fit
in better"

* Use Go version 1.17 for custom-error-pages

Since Go >= 1.16 required the use of modules, I also initialized the module using the name k8s.io/ingress-nginx/custom-error-pages
2021-09-09 04:38:11 -07:00
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
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