Files
haproxy-protection/docker-compose.yml
Thomas Lynch 6400d98975 make the useragent header fetch properly
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
2021-11-24 00:34:41 +11:00

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