Skip to content

JS Challenge (like Cloudflare) service that uses nginx auth_request_module.

License

Notifications You must be signed in to change notification settings

s3rj1k/nginx-js-challenge

Repository files navigation

Build

Build binaries

make build

Build Deb Package

apt install make devscripts debhelper build-essential dh-systemd
debuild -us -uc -b

Usage

Start nginx-js-challenge backend

./nginx-js-challenge -address=unix:/run/nginx-js-challenge.sock

Test nginx-js-challenge backend

curl --unix-socket /run/nginx-js-challenge.sock http:/example.com

Nginx configuration

The ./nginx dir contains the vhost configuration template.