mrestivill / default-backend

Nginx ingress custom default backend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Nginx ingress custom default backend

License:Apache License 2.0


Languages

Language:Go 68.0%Language:Dockerfile 32.0%