Skip to content

Latest commit

 

History

History
32 lines (29 loc) · 746 Bytes

README.md

File metadata and controls

32 lines (29 loc) · 746 Bytes

Build

Build binaries

make build

Build Deb Package

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

Usage

Generate new CAPTHCAs database

./nginx-captcha -generate=$AmountOfCAPTCHAs -db=$PathToDBFile

example:

./nginx-captcha -generate=1000 -db=/var/cache/nginx-captcha/captcha.db

Start nginx-captcha backend

./nginx-captcha -db=/var/cache/nginx-captcha/captcha.db -address=unix:/run/nginx-captcha.sock

Test nginx-captcha backend

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

Nginx configuration

The ./nginx dir contains the vhost configuration template.