feat[cloudflare]: integrate FlareSolverr for automated Cloudflare challenge resolution

- Add Cloudflare bypass functionality using FlareSolverr service
- Configure FlareSolverr Docker service with environment options
- Add flaresolverr_url config option with default localhost fallback
- Replace manual Cloudflare challenge notification with automated solving attempt
- Create new cloudflare.js module with health check, challenge detection, and solution application
This commit is contained in:
nocci 2026-03-08 13:06:46 +00:00
parent 1ddcf1d8af
commit e0c97f8d7c
4 changed files with 214 additions and 1 deletions

View file

@ -1,5 +1,15 @@
# start with `docker compose up`
services:
flaresolverr:
image: flaresolverr/flaresolverr:latest
ports:
- "8191:8191"
environment:
- LOG_LEVEL=info
- LOG_HTML=false
- CAPTCHA_SOLVER=none
restart: unless-stopped
free-games-claimer:
container_name: fgc # is printed in front of every output line
image: ghcr.io/vogler/free-games-claimer # otherwise image name will be free-games-claimer-free-games-claimer
@ -15,6 +25,7 @@ services:
# - EMAIL=foo@bar.org
# - NOTIFY='tgram://...'
- EG_MODE=new
- FLARESOLVERR_URL=http://flaresolverr:8191/v1
volumes:
fgc: