From 9539ced7e2ce5b60dc9f17042362a5a278e67f16 Mon Sep 17 00:00:00 2001 From: David Young Date: Thu, 20 Feb 2025 09:56:16 +1300 Subject: [PATCH] Prepare for comet rewrite --- comet-dev/configmap-comet-dev-env.yaml | 5 +++-- comet/configmap-comet-env.yaml | 3 ++- comet/middleware-rate-limit-stream.yaml | 4 ++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/comet-dev/configmap-comet-dev-env.yaml b/comet-dev/configmap-comet-dev-env.yaml index 39be9d428b..93f280cf17 100644 --- a/comet-dev/configmap-comet-dev-env.yaml +++ b/comet-dev/configmap-comet-dev-env.yaml @@ -16,12 +16,13 @@ data: DATABASE_TYPE: postgresql REMOVE_ADULT_CONTENT: "true" SCRAPE_ZILEAN: "True" - SCRAPE_TORRENTIO: "True" + SCRAPE_TORRENTIO: "false" SCRAPE_MEDIAFUSION: "True" + DOWNLOAD_TORRENTS: "false" STREMTHRU_DEFAULT_URL: http://elfhosted-internal.stremthru MEDIAFUSION_URL: http://elfhosted-internal.mediafusion CUSTOM_HEADER_HTML: |

- This is a dev instance of comet, and is not intended to be used outside of developer testing. Please use the official public instance instead

\ No newline at end of file + This is a dev instance of the comet rewrite, and is intended for limited public testing. Please use the official public instance

\ No newline at end of file diff --git a/comet/configmap-comet-env.yaml b/comet/configmap-comet-env.yaml index f991cf9b8c..1d1c4e705d 100644 --- a/comet/configmap-comet-env.yaml +++ b/comet/configmap-comet-env.yaml @@ -8,7 +8,8 @@ data: ADDON_ID: comet.elfhosted.com ADDON_NAME: Comet | ElfHosted MEDIAFUSION_URL: http://elfhosted-internal.mediafusion - SCRAPE_MEDIAFUSION: "false" # doesn't seem to work anymore + SCRAPE_MEDIAFUSION: "True" + DOWNLOAD_TORRENTS: "false" # INDEXER_MANAGER_TYPE: jackett # INDEXER_MANAGER_URL: http://jackett:9117 # DEBRID_PROXY_URL: http://127.0.0.1:1080 diff --git a/comet/middleware-rate-limit-stream.yaml b/comet/middleware-rate-limit-stream.yaml index 883a866b03..431dea956b 100644 --- a/comet/middleware-rate-limit-stream.yaml +++ b/comet/middleware-rate-limit-stream.yaml @@ -5,8 +5,8 @@ metadata: namespace: comet spec: rateLimit: - average: 4 # 8 requests per source IP every .. + average: 8 # 8 requests per source IP every .. period: 1m # This is a per-node limit, and we have 12 nodes (x), randomly load-balanced, so it's effectively 6/min, or 1/10s - burst: 5 # Allow 10 requests in the period to start off with, before rate-limiting kicks in + burst: 10 # Allow 10 requests in the period to start off with, before rate-limiting kicks in sourceCriterion: requestHeaderName: CF-Connecting-IP # Rate-limit by cloudflare connecting IP \ No newline at end of file