Add default flaresolverr values (#253)

This commit is contained in:
CaliBrain
2025-08-28 17:41:15 -04:00
committed by GitHub
parent 207cff96d3
commit 7d9a82bfea
2 changed files with 4 additions and 1 deletions

View File

@@ -10,6 +10,7 @@ services:
APP_ENV: prod
UID: 1000
GID: 100
EXT_BYPASSER_URL: http://flaresolverr:8191
ports:
- 8084:8084
restart: unless-stopped
@@ -20,3 +21,5 @@ services:
# This is the location of CWA's app.db, which contains authentication
# details
#- /cwa/config/path/app.db:/auth/app.db:ro
flaresolverr:
image: ghcr.io/flaresolverr/flaresolverr:latest

2
env.py
View File

@@ -47,7 +47,7 @@ LOG_FILE = LOG_DIR / "cwa-book-downloader.log"
USING_EXTERNAL_BYPASSER = string_to_bool(os.getenv("USING_EXTERNAL_BYPASSER", "false"))
if USING_EXTERNAL_BYPASSER:
EXT_BYPASSER_URL = os.getenv("EXT_BYPASSER_URL").strip()
EXT_BYPASSER_URL = os.getenv("EXT_BYPASSER_URL", "http://flaresolverr:8191").strip()
EXT_BYPASSER_PATH = os.getenv("EXT_BYPASSER_PATH", "/v1").strip()
EXT_BYPASSER_TIMEOUT = int(os.getenv("EXT_BYPASSER_TIMEOUT", "60000"))