Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions apps/aiometadata/.env
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,28 @@ FANART_API_KEY=
RPDB_API_KEY=
# Your MDBList API key. Optional, for integrating MDBList catalogs.
MDBLIST_API_KEY=
# Your Gemini API key. Optional, for AI features.
GEMINI_API_KEY=

# AniList API credentials (required for AniList integration)
# Get these from https://anilist.co/settings/developer
# Your AniList client ID
ANILIST_CLIENT_ID=
# Your AniList client secret
ANILIST_CLIENT_SECRET=
# The redirect URI for AniList OAuth (must match your AniList app settings)
# Example: https://your-domain.com/anilist/callback
ANILIST_REDIRECT_URI=

# Trakt API credentials (required for Trakt integration)
# Get these from https://trakt.tv/oauth/applications
# Your Trakt client ID
TRAKT_CLIENT_ID=
# Your Trakt client secret
TRAKT_CLIENT_SECRET=
# The redirect URI for Trakt OAuth (must match your Trakt app settings)
# Example: https://your-domain.com/api/auth/trakt/callback
TRAKT_REDIRECT_URI=

# -- Database & Caching --
# Connection URI for the database. SQLite is used for local storage, but PostgreSQL is also supported.
Expand Down
169 changes: 168 additions & 1 deletion apps/aiostreams/.env
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,82 @@ DATABASE_URI=sqlite://./data/db.sqlite
# If self-hosting stremthru, this can instead be set to http://stremthru:8080
BUILTIN_STREMTHRU_URL=https://stremthru.13377001.xyz

# By default, built-in addons will only use the primary title when using text-based querying. Use this variable
# to control this behaviour.
# You can either set this to true, false, or a comma separated list of hostnames.
# true means it always uses all titles, including for knaben, torrent galaxy etc.
# false means it never uses all titles
# jackett,knaben.org means only for URLs like http://jackett:9117 and https://knaben.org will all titles be used.
BUILTIN_SCRAPE_WITH_ALL_TITLES=false

# How long the cache status of an item is cached. Only applies to cached items, uncached items are always checked again.
# Default: 30 minutes
BUILTIN_DEBRID_INSTANT_AVAILABILITY_CACHE_TTL=1800
# How long download links for an item remain cached for.
# Default: 1 hour
BUILTIN_DEBRID_PLAYBACK_LINK_CACHE_TTL=3600
# How long the list of downloads in the user's library is cached for.
# Default: 5 minutes
BUILTIN_DEBRID_LIBRARY_CACHE_TTL=300

# The timeout for getting the magnet from a torrent link. Happens in bulk during searches when only download URL is present.
BUILTIN_GET_TORRENT_TIMEOUT=5000
# How many of the get torrent tasks should be running at the same time
# Higher values will increase search times but use more system resources.
BUILTIN_GET_TORRENT_CONCURRENCY=100
# The minimum interval between background refreshes for built-in addon search caches. Triggered during normal searches.
# e.g. Searches remain cached for the addon-specific TTLs but once this interval has passed, a background refresh can be triggered to ensure fresh results
# without making the user wait.
# Default: 1 day
BUILTIN_MINIMUM_BACKGROUND_REFRESH_INTERVAL=86400


# ---- Bitmagnet ----
# Enter the URL of a bitmagnet instance to enable the Bitmagnet addon in the marketplace.
# BUILTIN_BITMAGNET_URL=

# ---- Prowlarr ------
# Optionally provide a default prowlarr URL and API Key here. Users cannot see the values set here.
# BUILTIN_PROWLARR_URL=
# BUILTIN_PROWLARR_API_KEY=
# Optionally provide a comma separated list of indexers to limit the options in the config page, if not provided, all indexers will be shown.
# BUILTIN_PROWLARR_INDEXERS=
# BUILTIN_DEFAULT_PROWLARR_TIMEOUT=
# The timeout for search requests.
# BUILTIN_PROWLARR_SEARCH_TIMEOUT=
# How long specific responses should be cached for.
BUILTIN_PROWLARR_SEARCH_CACHE_TTL=604800
BUILTIN_PROWLARR_INDEXERS_CACHE_TTL=1209600


# --- Knaben ----
# BUILTIN_DEFAULT_KNABEN_TIMEOUT=
# BUILTIN_KNABEN_SEARCH_TIMEOUT=30000,
# BUILTIN_KNABEN_SEARCH_CACHE_TTL=604800


# --- Torrent Galaxy ---
# BUILTIN_TORRENT_GALAXY_URL=https://torrentgalaxy.space
# Default timeout of the addon in the marketplace
# BUILTIN_DEFAULT_TORRENT_GALAXY_TIMEOUT=
# The timeout for requests to TGx
# BUILTIN_TORRENT_GALAXY_SEARCH_TIMEOUT=30000
# How long each search is cached for.
# BUILTIN_TORRENT_GALAXY_SEARCH_CACHE_TTL=604800
# The maximum number of pages to fetch.
# BUILTIN_TORRENT_GALAXY_PAGE_LIMIT=5



# ---- Jackett
# Optionally provide a default Jackett URL and API Key here. Users cannot see the values set here.
# BUILTIN_JACKETT_URL=
# BUILTIN_JACKETT_API_KEY=

# ---- NZBHydra2 ------
# Optionally provide a default NZBHydra URL and API Key here. Users cannot see the values set here.
# BUILTIN_NZBHYDRA_URL=
# BUILTIN_NZBHYDRA_API_KEY=

# ---- Stremio GDrive -----
# Client ID and Secret generated following this guide: https://guides.viren070.me/stremio/addons/stremio-gdrive
Expand All @@ -103,6 +179,42 @@ BUILTIN_TORBOX_SEARCH_CACHE_PER_USER_SEARCH_ENGINE=false
# BUILTIN_TORBOX_SEARCH_METADATA_CACHE_TTL=604800
# BUILTIN_TORBOX_SEARCH_INSTANT_AVAILABILITY_CACHE_TTL=900

# ---- *znab (Torznab/Newznab) ----

BUILTIN_NAB_SEARCH_TIMEOUT=30000
BUILTIN_NAB_SEARCH_CACHE_TTL=604800
BUILTIN_NAB_CAPABILITIES_CACHE_TTL=1209600
BUILTIN_NAB_MAX_PAGES=5

# --- Zilean ---
BUILTIN_ZILEAN_URL="https://zilean.elfhosted.com"
# BUILTIN_DEFAULT_ZILEAN_TIMEOUT=

# --- AnimeTosho ---
BUILTIN_ANIMETOSHO_URL="https://feed.animetosho.org"
# BUILTIN_DEFAULT_ANIMETOSHO_TIMEOUT=

BUILTIN_NEKOBT_URL="https://nekobt.to/api/torznab"
# BUILTIN_DEFAULT_NEKOBT_TIMEOUT=


# =============================================================================
# # ANIME DATABASE
# =============================================================================

# Customise the level of detail that is loaded and available for AIOStreams and the Anime API.
# Choices: none, required, full
# Default: required
ANIME_DB_LEVEL_OF_DETAIL=required
# Control how often the datasources for the local anime database will refresh.

ANIME_DB_FRIBB_MAPPINGS_REFRESH_INTERVAL=86400000
ANIME_DB_MANAMI_DB_REFRESH_INTERVAL=604800000
ANIME_DB_KITSU_IMDB_MAPPING_REFRESH_INTERVAL=86400000
ANIME_DB_EXTENDED_ANITRAKT_MOVIES_REFRESH_INTERVAL=86400000
ANIME_DB_EXTENDED_ANITRAKT_TV_REFRESH_INTERVAL=86400000


# ==============================================================================
# DEBRID & OTHER SERVICE API KEYS
# ==============================================================================
Expand Down Expand Up @@ -179,12 +291,31 @@ FORCED_SEEDR_ENCODED_TOKEN=
# Example: CUSTOM_HTML="<div>Welcome to my AIOStreams!</div>"
CUSTOM_HTML=

# --- Alternate Design
# Choose to enable an alternate design for the AIOStreams logo.
ALTERNATE_DESIGN=false

# --- Trusted Users ---
# Comma-separated list of trusted UUIDs.
# Trusted users can access features like regex filters if REGEX_FILTER_ACCESS is 'trusted'.
# Example: TRUSTED_UUIDS=ae32f456-1234-5678-9012-345678901234,another-uuid-here
# TRUSTED_UUIDS=

# ---- Stream Data ----
# Whether to provide stream data in stream responses.
# Set to either true, false, or a list of IPs.
# Or leave undefined.
# Setting to a list of IPs only shows stream data when request is made from one of those IPs
# Leaving as undefined only shows when necessary by AIO.
# Disabling this means users cannot wrap your AIOStreams instance.
# PROVIDE_STREAM_DATA=

# --- Search API -----
# Control whether to serve a search API for easier access to results through AIOStreams
# at the /api/v1/search endpoint.
# Enabled by default, set to false to disable.
# ENABLE_SEARCH_API=true

# --- Regex Filter Access ---
# Controls who can use regex filters.
# 'none': No one can use regex filters.
Expand All @@ -198,14 +329,20 @@ REGEX_FILTER_ACCESS=trusted
# Format: e.g. ["/(\\[(Aergia|smol|SoM|Vodes)\\]|-(Aergia(?!-raws)|smol|SoM)\\b|\\b(Arg0|LYS1TH3A|OZR|SCY|ZeroBuild)\\b)|(?<!Not)-Vodes\\b/i", "/(\\[(Legion|sam|Vanilla)\\]|-(Legion|sam|Vanilla)\\b)/"]
# Description supports markdown format for links and code only. (i.e. [linktext](link) and `code`)
# ALLOWED_REGEX_PATTERNS=
# ALLOWED_REGEX_PATTERNS_URLS=
# ALLOWED_REGEX_PATTERNS_DESCRIPTION=

# How often patterns from URLs will be refreshed.
# Default: 86400000 (1 day)
# ALLOWED_REGEX_PATTERNS_URLS_REFRESH_INTERVAL=

# --- Aliased Configurations (Vanity URLs) ---
# Create shorter, memorable installation URLs.
# Format: aliasName1:uuid1:encryptedPassword1,aliasName2:uuid2:encryptedPassword2
# Users can then access the addon via /stremio/u/aliasName/manifest.json
# ALIASED_CONFIGURATIONS=


# ==============================================================================
# CACHE CONFIGURATION
# ==============================================================================
Expand All @@ -229,12 +366,18 @@ CATALOG_CACHE_TTL=300
META_CACHE_TTL=300
ADDON_CATALOG_CACHE_TTL=300

# timeout for background resource requests, uses the value of MAX_TIMEOUT if not set.
# This is the timeout for processing requests in the background after its initial timeout
# so it can be cached for the next request.
# BACKGROUND_RESOURCE_REQUEST_TIMEOUT=


# --- RPDB API Key Validation Caching ---
# Control how long a valid API key check is cached for
# Default: 7 days
RPDB_API_KEY_VALIDITY_CACHE_TTL=604800


# ==============================================================================
# FEATURE CONTROL
# ==============================================================================
Expand Down Expand Up @@ -291,6 +434,19 @@ LOG_SENSITIVE_INFO=true
LOG_TIMEZONE=${TZ}


# ===============================================================================
# URL MAPPINGS
# ==============================================================================
# Configure URL mappings for rerouting outgoing requests and adjusting stream URLs
# ----- Request URL Mappings -------
# Configure URL Mappings for outgoing requests. e.g. reroute requests to https://aiostreams.example.com to http://localhost:3000
# REQUEST_URL_MAPPINGS='{"https://aiostreams.example.com": "http://localhost:3000"}'

# ---- Stream URL Mappings -----
# Configure adjustments to stream URLs. e.g convert stream URLs with http://localhost:3000 as the base URL to https://aiostreams.example.com
# STREAM_URL_MAPPINGS='{"http://localhost:3000": "https://aiostreams.example.com"}'


# ==============================================================================
# PROXY FOR OUTGOING ADDON REQUESTS (Torrentio, etc.)
# ==============================================================================
Expand All @@ -309,6 +465,13 @@ LOG_TIMEZONE=${TZ}
# Example: ADDON_PROXY_CONFIG="*:false,*.strem.fun:true" (only proxy *.strem.fun domains)
# ADDON_PROXY_CONFIG=

# AIOStreams also supports using multiple proxies. For example.
# ADDON_PROXY='["http://warp:1080", "http://gluetun:8080"]'
# ADDON_PROXY_CONFIG=*:false,*.strem.fun:0,*.baby-beamup.club:1

# Where you would normally put true/false, replace it with the index of the proxy you want to use (index starts from 0)
# The above setup would use warp for strem.fun and gluetun for baby-beamup.club


# ==============================================================================
# DEFAULT/FORCED STREAM PROXY (MediaFlow, StremThru)
Expand Down Expand Up @@ -530,6 +693,10 @@ STREMTHRU_TORZ_URL=https://stremthru.13377001.xyz/stremio/torz/
# FORCE_STREMTHRU_TORZ_PORT=
# FORCE_STREMTHRU_TORZ_PROTOCOL=https

# --------- Sootio ---------
# SOOTIO_URL=https://sootio.elfhosted.com
# DEFAULT_SOOTIO_TIMEOUT=

# --------- EASYNEWS+ ADDON ---------
# The URL to use for EasyNews+, if self hosting, uncomment the line below.
# EASYNEWS_PLUS_URL=http://easynews-plus:1337
Expand Down Expand Up @@ -688,4 +855,4 @@ EASYNEWS_PLUS_PLUS_URL=https://easynews-cloudflare-worker.jqrw92fchz.workers.dev
# --------------- More Like This -------------
# MORE_LIKE_THIS_URL=https://bbab4a35b833-more-like-this.baby-beamup.club

# ==============================================================================
# ==============================================================================