Skip to content

Captcha service that uses nginx auth_request_module.

Notifications You must be signed in to change notification settings

exsver/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.

About

Captcha service that uses nginx auth_request_module.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 98.0%
  • Makefile 2.0%