Skip to content
This repository has been archived by the owner on Aug 17, 2021. It is now read-only.
/ nginx-captcha Public archive

Captcha service that uses nginx auth_request_module.

Notifications You must be signed in to change notification settings

s3rj1k/nginx-captcha

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

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.