Skip to content

Commit

Permalink
Prepare for comet rewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
funkypenguin committed Feb 19, 2025
1 parent e348540 commit 9539ced
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions comet-dev/configmap-comet-dev-env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
<img src="https://elfhosted.com/images/logo.svg" height="72px" width="72px"/>
<P>
This is a dev instance of comet, and is not intended to be used outside of developer testing. Please use <A HREF="https://comet.elfhosted.com">the official public instance</A> instead</P>
This is a dev instance of the comet rewrite, and is intended for limited public testing. Please use <A HREF="https://comet.elfhosted.com">the official public instance</A></P>
3 changes: 2 additions & 1 deletion comet/configmap-comet-env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions comet/middleware-rate-limit-stream.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9539ced

Please sign in to comment.