mirror of
https://gitgud.io/fatchan/haproxy-protection.git
synced 2025-05-09 02:05:37 +00:00
- Move to new scheme with some hashing, sigs, and a random user key. close #13 - Change to sha256 rather than sha1 (temporary, but i guess its slightly more secure which is nice for now) ref #10 - Change POW output checked value - Add lib for randombytes, udpate lua sha lib - Remove outdated difficulty checks in frontend (was hardcoded 0 anyway) and since algo change is coming soon, there is no need to keep it
43 lines
1.4 KiB
YAML
43 lines
1.4 KiB
YAML
version: "3.9"
|
|
services:
|
|
# tor:
|
|
# build:
|
|
# context: ./
|
|
# dockerfile: tor/Dockerfile
|
|
haproxy:
|
|
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/dataplaneapi.hcl:/etc/haproxy/dataplaneapi.hcl
|
|
- ./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:
|
|
- 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
|
|
nginx:
|
|
ports:
|
|
- 81:80
|
|
image: "nginx:latest"
|
|
volumes:
|
|
- ./nginx:/usr/share/nginx/html
|