An open API service indexing awesome lists of open source software.

https://github.com/s3rj1k/go-nginx-captcha

Captcha service that uses nginx auth_request_module.
https://github.com/s3rj1k/go-nginx-captcha

auth-request captcha nginx nginx-captcha subrequest

Last synced: 4 months ago
JSON representation

Captcha service that uses nginx auth_request_module.

Awesome Lists containing this project

README

        

# Build
## Build binaries
```shell script
make build
```

## Build Deb Package
```shell script
apt install make devscripts debhelper build-essential dh-systemd
debuild -us -uc -b
```

# Usage
## Generate new CAPTHCAs database
```shell script
./nginx-captcha -generate=$AmountOfCAPTCHAs -db=$PathToDBFile
```
example:
```shell script
./nginx-captcha -generate=1000 -db=/var/cache/nginx-captcha/captcha.db
```
## Start nginx-captcha backend
```shell script
./nginx-captcha -db=/var/cache/nginx-captcha/captcha.db -address=unix:/run/nginx-captcha.sock
```
## Test nginx-captcha backend
```shell script
curl --unix-socket /run/nginx-captcha.sock http:/example.com
```

## Nginx configuration
The ./nginx dir contains the vhost configuration template.