Skip to content
Default Ingress Backend
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
Dockerfile
README.md
docker-compose.yml
op.conf

README.md

Fallback - Default Ingress Backend

This is a simple docker image intended to be used as a default backend to an nginx proxy.



Usage

Start the server

With opcode

$ op serve

or without

$ cd app && rackup -p 3000 -o 0.0.0.0

or with docker-compose

$ docker-compose up

or with plain docker

$ docker run --rm -it -p 3000:3000 dannyben/fallback

View the pages

Then you can test HTTP codes by either passing them in the path:

$ open http://localhost:3000/503

or by sending the X-Code header:

$ curl -v http://localhost:3000 -H "X-Code: 503"

You can’t perform that action at this time.