mirror of
https://gitgud.io/fatchan/haproxy-protection.git
synced 2025-05-09 02:05:37 +00:00
- Make POW checked before captcha in POST handler, since they both must be submittedin captcha mode, we don't want to send POST to /siteverify if they didnt even solve the POW Other: - Change (improve) split util to leave empty table entries for repeated delimiters - Minor frontend script bugfix so error messages display properly in captcha mode - Wrap submit button of noscript pow form to next line
54 lines
1.7 KiB
YAML
54 lines
1.7 KiB
YAML
version: "3.9"
|
|
services:
|
|
|
|
haproxy:
|
|
network_mode: host
|
|
ports:
|
|
- 80:80
|
|
build:
|
|
context: ./
|
|
dockerfile: haproxy/Dockerfile
|
|
volumes:
|
|
- ./haproxy/haproxy.cfg:/etc/haproxy/haproxy.cfg
|
|
- ./haproxy/ddos.map:/etc/haproxy/ddos.map
|
|
- ./haproxy/hosts.map:/etc/haproxy/hosts.map
|
|
- ./haproxy/backends.map:/etc/haproxy/backends.map
|
|
- ./haproxy/blocked.map:/etc/haproxy/blocked.map
|
|
- ./haproxy/whitelist.map:/etc/haproxy/whitelist.map
|
|
- ./haproxy/maintenance.map:/etc/haproxy/maintenance.map
|
|
- ./haproxy/trace.txt:/etc/haproxy/trace.txt
|
|
- ./src/scripts/:/etc/haproxy/scripts/
|
|
- ./src/libs/:/etc/haproxy/libs/
|
|
- ./haproxy/js/:/var/www/js/
|
|
- ./haproxy/html/maintenance.html:/var/www/html/maintenance.html
|
|
environment:
|
|
# These are the hcaptcha and recaptcha test keys, not leaking any dont worry :^)
|
|
- HCAPTCHA_SITEKEY=20000000-ffff-ffff-ffff-000000000002
|
|
- HCAPTCHA_SECRET=0x0000000000000000000000000000000000000000
|
|
#- RECAPTCHA_SECRET=6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe
|
|
#- RECAPTCHA_SITEKEY=6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI
|
|
- CAPTCHA_COOKIE_SECRET=changeme
|
|
- POW_COOKIE_SECRET=changeme
|
|
- HMAC_COOKIE_SECRET=changeme
|
|
- RAY_ID=docker
|
|
- BUCKET_DURATION=43200
|
|
- BACKEND_NAME=servers
|
|
- SERVER_PREFIX=websrv
|
|
- CHALLENGE_INCLUDES_IP=1
|
|
- POW_TIME=2
|
|
- POW_KB=512
|
|
- POW_DIFFICULTY=25
|
|
- TOR_CONTROL_PORT_PASSWORD=changeme
|
|
|
|
nginx:
|
|
ports:
|
|
- 81:80
|
|
image: "nginx:latest"
|
|
volumes:
|
|
- ./nginx:/usr/share/nginx/html
|
|
|
|
# tor:
|
|
# build:
|
|
# context: ./
|
|
# dockerfile: tor/Dockerfile
|