Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/s3rj1k/nginx-js-challenge
JS Challenge (like Cloudflare) service that uses nginx auth_request_module.
https://github.com/s3rj1k/nginx-js-challenge
auth-request challenge cloudflare js js-challenge nginx subrequest
Last synced: about 2 months ago
JSON representation
JS Challenge (like Cloudflare) service that uses nginx auth_request_module.
- Host: GitHub
- URL: https://github.com/s3rj1k/nginx-js-challenge
- Owner: s3rj1k
- License: mit
- Created: 2020-10-31T17:42:12.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-10-31T17:46:37.000Z (about 4 years ago)
- Last Synced: 2023-03-06T13:19:53.191Z (almost 2 years ago)
- Topics: auth-request, challenge, cloudflare, js, js-challenge, nginx, subrequest
- Language: Go
- Homepage:
- Size: 14.6 KB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
## Start nginx-js-challenge backend
```shell script
./nginx-js-challenge -address=unix:/run/nginx-js-challenge.sock
```
## Test nginx-js-challenge backend
```shell script
curl --unix-socket /run/nginx-js-challenge.sock http:/example.com
```## Nginx configuration
The ./nginx dir contains the vhost configuration template.