mirror of
https://github.com/tarampampam/error-pages.git
synced 2024-08-30 18:22:40 +00:00
chore: add ingress-nginx to docs (#53)
This commit is contained in:
parent
88278d37a7
commit
fab38255eb
25
README.md
25
README.md
@ -407,6 +407,31 @@ After executing `docker-compose up` you can:
|
||||
- Open nginx index page [on a domain `test.localtest.me`](http://test.localtest.me/)
|
||||
- View customized error pages for non-existing [pages](http://test.localtest.me/404) and [domains](http://404.localtest.me/)
|
||||
|
||||
### Kubernetes + ingress-nginx
|
||||
|
||||
This can be configured to work with the [ingress-nginx](https://github.com/kubernetes/ingress-nginx/tree/main/charts/ingress-nginx) helm chart in Kubernetes.
|
||||
|
||||
1. Set the `custom-http-errors` config value
|
||||
2. Enable default backend
|
||||
3. Set the default backend image
|
||||
|
||||
```yaml
|
||||
controller:
|
||||
config:
|
||||
custom-http-errors: >-
|
||||
401,403,404,500,501,502,503
|
||||
defaultBackend:
|
||||
enabled: true
|
||||
image:
|
||||
repository: ghcr.io/tarampampam/error-pages
|
||||
tag: latest # Using the latest tag is highly discouraged. Please, use tags in X.Y.Z format
|
||||
extraEnvs:
|
||||
- name: TEMPLATE_NAME # Optional: change the default theme
|
||||
value: l7-dark
|
||||
- name: SHOW_DETAILS # Optional: enables the output of additional information on error pages
|
||||
value: 'true'
|
||||
```
|
||||
|
||||
## Changes log
|
||||
|
||||
[![Release date][badge_release_date]][link_releases]
|
||||
|
Loading…
x
Reference in New Issue
Block a user