CF BYPASS (#24)

The Calibre dependency was due to the script testing for validity of the
downloaded file, as often they would be corrupted from aa. But CWA is
already doing that, so we are just having redundant code here.

For the cloudflarebypasser, I basically run my own version now, instead
of depending on an external library, this way we have better control for
debugging and on the docker image.

Fixes #18, #33, #27, #48, #65, #78, #86, #88, #89

---------

Co-authored-by: mik593 <91991279+mik593@users.noreply.github.com>
This commit is contained in:
CaliBrainandmik593 authored and GitHub committed 2025-03-16 02:25:15 -04:00
1 parent 17fdb87749
commit 3a92c5de78
19 files changed
+688 -264

No files matched your search

+1 -13
View File
@@ -7,23 +7,11 @@ services:
environment:
FLASK_PORT: 8084
FLASK_DEBUG: false
CLOUDFLARE_PROXY_URL: http://cloudflarebypassforscraping:8000
INGEST_DIR: /cwa-book-ingest
BOOK_LANGUAGE: en
ports:
- 8084:8084
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8084/request/api/status"]
interval: 30s
timeout: 30s
retries: 3
start_period: 5s
restart: unless-stopped
volumes:
# This is where the books will be downloaded to, usually it would be
# the same as whatever you gave in "calibre-web-automated"
- /tmp/data/calibre-web/ingest:${INGEST_DIR:-/cwa-book-ingest}
cloudflarebypassforscraping:
image: ghcr.io/sarperavci/cloudflarebypassforscraping:latest
restart: unless-stopped
- /tmp/data/calibre-web/ingest:/cwa-book-ingest