From 390216b92abe3ba9aef6bfabb237ff6d07f74474 Mon Sep 17 00:00:00 2001 From: Syer10 Date: Wed, 24 Jan 2024 21:10:35 -0500 Subject: [PATCH] Add FlareSolverSession --- README.md | 2 ++ scripts/startup_script.sh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index 845ae79..a79a745 100644 --- a/README.md +++ b/README.md @@ -67,6 +67,8 @@ There are a number of environment variables available to configure Suwayomi: | **FLARESOLVERR_ENABLED** | `false` | Whether FlareSolverr is enabled and available to use | | **FLARESOLVERR_URL** | `http:\/\/localhost:8191` | The URL of the FlareSolverr instance, the URL must be escaped! | | **FLARESOLVERR_TIMEOUT** | `60` | Time in seconds for FlareSolverr to timeout if the challenge is not solved | +| **FLARESOLVERR_SESSION_NAME** | `suwayomi` | The name of the session that Suwayomi will use with FlareSolverr | +| **FLARESOLVERR_SESSION_TTL** | `15` | The time to live for the FlareSolverr session | # Docker tags diff --git a/scripts/startup_script.sh b/scripts/startup_script.sh index 3c61f1d..2b94979 100755 --- a/scripts/startup_script.sh +++ b/scripts/startup_script.sh @@ -76,5 +76,7 @@ fi sed -i -r "s/server.flareSolverrEnabled = (.*)/server.flareSolverrEnabled = ${FLARESOLVERR_ENABLED:-\1}/" /home/suwayomi/.local/share/Tachidesk/server.conf sed -i -r "s/server.flareSolverrUrl = \"(.*)\"/server.flareSolverrUrl = \"${FLARESOLVERR_URL:-\1}\"/" /home/suwayomi/.local/share/Tachidesk/server.conf sed -i -r "s/server.flareSolverrTimeout = (.*)/server.flareSolverrTimeout = ${FLARESOLVERR_TIMEOUT:-\1}/" /home/suwayomi/.local/share/Tachidesk/server.conf +sed -i -r "s/server.flareSolverrSessionName = \"(.*)\"/server.flareSolverrSessionName = \"${FLARESOLVERR_SESSION_NAME:-\1}\"/" /home/suwayomi/.local/share/Tachidesk/server.conf +sed -i -r "s/server.flareSolverrSessionTtl = (.*)/server.flareSolverrSessionTtl = ${FLARESOLVERR_SESSION_TTL:-\1}/" /home/suwayomi/.local/share/Tachidesk/server.conf exec java -Duser.home=/home/suwayomi -jar "/home/suwayomi/startup/tachidesk_latest.jar";