A dead-simple blackhole "web server" that responds all requests with the set HTTP status
978
A dead-simple blackhole "web server" that responds all requests with the set HTTP status.
Some scalable scenarios require applications exposing itself to the internet, but you still need to "disable" some endpoints on the public internet. You can do so on your application, on your front-end server, or you can use this.
A real-world scenario is a kubernetes exposed application, which uses an ingress that binds /,
but some endpoints are internal ones.
docker build -t rejector .
docker run --rm -it -p 8080:80 rejector
All settings can be done through environment variables.
| Name | Default value | Description |
|---|---|---|
HTTP_VERSION | 1.1 | the HTTP version to use on the header |
HTTP_STATUS | 403 Forbidden | the HTTP response code |
PORT | 80 | the port where the server should listen to |
Content type
Image
Digest
Size
2.7 MB
Last updated
over 6 years ago
docker pull wwmoraes/responder