mirror of
https://github.com/calibrain/shelfmark.git
synced 2026-09-24 21:30:26 +01:00
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:
+1
-7
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user