Sign inSign up

glarfs/default-backend

By glarfs

•Updated about 6 years ago

default-backend for nginx-ingress with custom errors

Image
0

930

glarfs/default-backend repository overview

Docker Pulls Go Report Card license

⁠Default backend for nginx-ingress on Kubernetes

This is a custom default backend for nginx-ingress⁠. The only reason for creating this project was to customize the 404 page and provide a better (and branded) user experience.

⁠Configuration

By default, the backend will listen on port 8080 and serve an HTML page with the error file at /assets/404.html. Override the default html page by mounting a config map with the html page at a different path.

Important Note

The final image is based on scratch image, so normal file system operations won't work. See the Dockerfile for more details

⁠Public Builds

Based on https://hub.docker.com/r/nuvo/default-backend⁠

https://hub.docker.com/r/glarfs/default-backend⁠

Build from Source

simple build:

docker build -t glarfs/default-backend .

multiarch build:

 docker buildx build -t glarfs/default-backend --platform=linux/arm,linux/arm64,linux/amd64 . --push

Tag summary

Content type

Image

Digest

Size

3.8 MB

Last updated

about 6 years ago

docker pull glarfs/default-backend