Skip to content

nginx-ultimate-bad-bot-blocker dockerized and proxified

Notifications You must be signed in to change notification settings

Miosame/nginx-blocker-docker-proxy

Repository files navigation

nginx-blocker-docker-proxy

Do not treat "latest" tag as stable, this repo is configured to push a tag on every single master commit.

This takes the great work of: nginx-ultimate-bad-bot-blocker, dockerizes and makes it a fronting loadbalanced proxy for any application. The container also includes a cron to daily auto update the blocklist from upstream.

A working docker-compose.yml example is included in the repository. Make sure if you only use the github tagged image, that you mount the nginx upstream.conf and default.conf configs too.

Both at first setup and to modify upstream servers later on:

  1. Edit the upstream config to point to your server(s) it should front. (replacing the server 127.0.0.1; further syntax examples can be found here).
  2. Either reloading nginx from inside the container (docker container exec <container> nginx -s reload) or just simply bringing docker-compose down and then up: docker-compose down && docker-compose up -d.

You can also make use of docker-compose DNS inside the upstream.conf config (hostnames instead of IPs), as long as nginx-blocker-docker-proxy is in the same docker network or in the same compose file.

About

nginx-ultimate-bad-bot-blocker dockerized and proxified

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published