Skip to content
This repository was archived by the owner on Jan 29, 2024. It is now read-only.

weibell/tiny404

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

tiny404

Tiny Docker container responding to any request with a minimal HTTP 404 (or other) response.

Usage

docker run -d -p 80:80 weibell/tiny404

Equivalent docker-compose.yml file:

version: "3"
services:
  web:
    image: weibell/tiny404
    ports:
      - "80:80"

Environment variables

Variable Default Possible Values
STATUS_CODE 404 200, 401, 403, 404, 500
BODY "" arbitrary

Example:

docker run -d -p 80:80 -e STATUS_CODE=403 -e BODY="403\nForbidden" weibell/tiny404

Equivalent docker-compose.yml file:

version: "3"
services:
  web:
    image: weibell/tiny404
    ports:
      - "80:80"
    environment:
      - STATUS_CODE=403
      - BODY="403\nForbidden"

About

Tiny Docker container responding to any request with a minimal HTTP 404 (or other) response.

Topics

Resources

Stars

Watchers

Forks

Contributors