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:
CaliBrain
2025-03-16 02:25:15 -04:00
committed by GitHub
co-authored by mik593
parent 17fdb87749
commit 3a92c5de78
19 changed files with 688 additions and 264 deletions
+1 -7
View File
@@ -5,8 +5,6 @@ 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
@@ -21,8 +19,4 @@ services:
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