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.
- Host: GitHub
- URL: https://github.com/s3rj1k/go-nginx-captcha
- Owner: s3rj1k
- Archived: true
- Created: 2019-05-15T08:18:09.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-11-26T17:47:24.000Z (over 4 years ago)
- Last Synced: 2024-01-29T17:22:48.398Z (over 1 year ago)
- Topics: auth-request, captcha, nginx, nginx-captcha, subrequest
- Language: Go
- Homepage:
- Size: 13.7 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.