mirror of
https://gitgud.io/fatchan/haproxy-protection.git
synced 2025-05-09 02:05:37 +00:00
add a salt to the generate_secret function -- that was kinda important right? lol just pass through to `end` if not POST or GET make it not use calls to hostname and dig in lua scripts, use haproxy backend resolving instead improve the template a lot and make it theme-matched to my site and similar to ngx_http_js_challenge robot page fix various bugs
18 lines
573 B
YAML
18 lines
573 B
YAML
version: "3.9"
|
|
services:
|
|
haproxy:
|
|
build:
|
|
context: ./
|
|
dockerfile: haproxy/Dockerfile
|
|
ports:
|
|
- 80:80
|
|
volumes:
|
|
- ./haproxy/haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg
|
|
- ./haproxy/domains_under_ddos.txt:/usr/local/etc/haproxy/domains_under_ddos.txt
|
|
- ./src/scripts/:/usr/local/etc/haproxy/scripts/
|
|
- ./src/libs/:/usr/local/etc/haproxy/libs/
|
|
environment:
|
|
- HCAPTCHA_SECRET=0x0000000000000000000000000000000000000000
|
|
- HCAPTCHA_SITEKEY=10000000-ffff-ffff-ffff-000000000001
|
|
- COOKIE_SECRET=changeme
|