From 05c4fd32abfeabdc280ef9e7d6d8d4545e012494 Mon Sep 17 00:00:00 2001 From: Mitchell Syer Date: Sat, 6 Jan 2024 01:11:52 +0000 Subject: [PATCH] Support custom repos --- README.md | 1 + scripts/startup_script.sh | 1 + server.conf.template | 3 +++ 3 files changed, 5 insertions(+) diff --git a/README.md b/README.md index fdf4dc5..a9c092f 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,7 @@ There are a number of environment variables available to configure Suwayomi: | **AUTO_DOWNLOAD_CHAPTERS** | `false` | If new chapters that have been retrieved should get automatically downloaded | | **AUTO_DOWNLOAD_EXCLUDE_UNREAD** | `true` | Ignore automatic chapter downloads of entries with unread chapters | **AUTO_DOWNLOAD_AHEAD_LIMIT** | `0` | 0 to disable - how many unread downloaded chapters should be available - if the limit is reached, new chapters won't be downloaded automatically +| **EXTENSION_REPOS** | `"[]"` | Any additional extension repos to use, the format is `["https://github.com/MY_ACCOUNT/MY_REPO/tree/repo", "https://github.com/MY_ACCOUNT_2/MY_REPO_2/"]` | **MAX_SOURCES_IN_PARALLEL** | `6` | Range: 1 <= n <= 20 - Sets how many sources can do requests (updates, downloads) in parallel. Updates/Downloads are grouped by source and all mangas of a source are updated/downloaded synchronously | | **UPDATE_EXCLUDE_UNREAD** | `true` | If unread manga should be excluded from updates | | **UPDATE_EXCLUDE_STARTED** | `true` | If manga that haven't been started should be excluded from updates | diff --git a/scripts/startup_script.sh b/scripts/startup_script.sh index c055b70..22ab31c 100755 --- a/scripts/startup_script.sh +++ b/scripts/startup_script.sh @@ -33,6 +33,7 @@ export UPDATE_MANGA_INFO="${UPDATE_MANGA_INFO:-false}" export BACKUP_TIME="${BACKUP_TIME:-"00:00"}" export BACKUP_INTERVAL="${BACKUP_INTERVAL:-1}" export BACKUP_TTL="${BACKUP_TTL:-14}" +export EXTENSION_REPOS="${EXTENSION_REPOS:-"[]"}" envsubst < /home/suwayomi/server.conf.template > /home/suwayomi/.local/share/Tachidesk/server.conf diff --git a/server.conf.template b/server.conf.template index c57cb34..7242265 100644 --- a/server.conf.template +++ b/server.conf.template @@ -23,6 +23,9 @@ server.autoDownloadNewChapters = ${AUTO_DOWNLOAD_CHAPTERS} # if new chapters tha server.excludeEntryWithUnreadChapters = ${AUTO_DOWNLOAD_EXCLUDE_UNREAD} # ignore automatic chapter downloads of entries with unread chapters server.autoDownloadAheadLimit = ${AUTO_DOWNLOAD_AHEAD_LIMIT} # 0 to disable it - how many unread downloaded chapters should be available - if the limit is reached, new chapters won't be downloaded automatically +# extension +server.extensionRepos = ${EXTENSION_REPOS} + # requests server.maxSourcesInParallel = ${MAX_SOURCES_IN_PARALLEL} # range: 1 <= n <= 20 - default: 6 - sets how many sources can do requests (updates, downloads) in parallel. updates/downloads are grouped by source and all mangas of a source are updated/downloaded synchronously