/docker-nginx-bad-request

Nginx container to 'protect' with ALB some paths (and log the tries)

Primary LanguageDockerfileApache License 2.0Apache-2.0

Docker Pulls Docker Stars GitHub tag

nginx-bad-request

This container is made to be used behind an Application LoadBalancer to protect some subpaths or some paths which should not be given in a front.

every path but /healthcheck will return a 400 error with the simple text message "bad request"

healthcheck

The healthcheck for the container can be joined by /healthcheck (which return a 204)

Building

git clone https://github.com/talend/docker-nginx-bad-request.git
cd docker-nginx-bad-request
docker build -t talendinc/nginx-bad-request .

Examples of use

docker run -d -p 8080:80 --rm --name nginx-bad-request talendinc/nginx-bad-request

curl http://localhost:8080/my/protected/path -w '\n%{http_code}'
bad request
400

curl http://localhost:8080/healthcheck -w '\n%{http_code}'

204

License

Apache Version 2.0