# ============================================================================== # ESSENTIAL ADDON SETUP # ============================================================================== # These are the most important settings you'll need to configure. # --- Addon Identification --- # Descriptive name for your addon instance. ADDON_NAME="AIOStreams" # Unique identifier for your addon. ADDON_ID="aiostreams.viren070.com" # --- Network Configuration --- # The port on which the addon will listen. # Default: 3000 PORT=3000 # The base URL of your addon. Required for proper functioning. # Used for generating installation URLs, identifying self scraping, replacing genre links, generating stream URLs for built in addons etc. # Example: https://aiostreams.yourdomain.com BASE_URL= # Optionally override the internal URL. This URL is used when communicating with built-in addons. # In most cases, the default is fine. # INTERNAL_URL=http://localhost:${PORT} # --- Security --- # CRITICAL: Secret key for encrypting addon configuration. # MUST be a 64-character hex string. # Generate one using: # Linux/macOS: openssl rand -hex 32 # Windows (PowerShell): -join ((0..31) | ForEach-Object { '{0:x2}' -f (Get-Random -Minimum 0 -Maximum 255) }) # Or: [System.Guid]::NewGuid().ToString("N") + [System.Guid]::NewGuid().ToString("N") (ensure it's 64 chars) SECRET_KEY= # API key to protect your addon installation and usage. # Leave empty to disable password protection. # Can be any string. # Supports multiple passwords separated by commas # Example: ADDON_PASSWORD="password1,password2" ADDON_PASSWORD= # --- Database --- # REQUIRED: The database URI for storing addon configuration. # Supports SQLite (simplest) or PostgreSQL. # # SQLite example (stores data in a file): # DATABASE_URI=sqlite://./data/db.sqlite # (You can change './data/db.sqlite' to your preferred path) # # PostgreSQL example: # DATABASE_URI=postgres://username:password@host:port/database_name # (e.g., postgresql://postgres:password@localhost:5432/aiostreams) DATABASE_URI=sqlite://./data/db.sqlite # --- Redis (Optional, for Scaled Deployments) ---- # Optionally provide a Redis URI to use for caching. This is only recommended for # users running multiple instances (e.g., via Docker Swarm). # # For standard, single-container setups, leave this blank. It will default to # a simpler internal memory cache that is more than sufficient and faster too. # # REDIS_URI=redis://your_redis_hostname:6379 # ============================================================================== # BUILT-IN ADDON CONFIGURATION # ============================================================================== # AIOStreams provides some built-in addons that you can configure here. # These require BASE_URL to be set above. # Some of these built-in integrations require StremThru for Debrid integration. # Set the URL to your StremThru instance here: BUILTIN_STREMTHRU_URL=https://stremthru.13377001.xyz # ---- Stremio GDrive ----- # Client ID and Secret generated following this guide: https://guides.viren070.me/stremio/addons/stremio-gdrive # Follow only: # - All steps from 'Setting up our Google App' (but set redirect URL to Set the redirect URL to ${BASE_URL}/oauth/callback/gdrive) # - Step 7 from 'Setting up the cloudflare worker' # And then paste in the Client ID and Secret here. # BUILTIN_GDRIVE_CLIENT_ID= # BUILTIN_GDRIVE_CLIENT_SECRET= # The limit to the amount of items that can possibly be queried from the Google Drive API in a given request. BUILTIN_GDRIVE_PAGE_SIZE_LIMIT=1000 # BUILTIN_GDRIVE_TIMEOUT= # ---- TorBox Search ----- # Has no required configuration apart from BASE_URL # The amount of time to wait for requests to the TorBox Search API. BUILTIN_TORBOX_SEARCH_SEARCH_API_TIMEOUT=30000 # Whether to cache results for users who've enabled user search engines. This requires a cache entry for each user for each title rather than # A shared cache. BUILTIN_TORBOX_SEARCH_CACHE_PER_USER_SEARCH_ENGINE=false # BUILTIN_TORBOX_SEARCH_SEARCH_API_CACHE_TTL=3600 # BUILTIN_TORBOX_SEARCH_METADATA_CACHE_TTL=604800 # BUILTIN_TORBOX_SEARCH_INSTANT_AVAILABILITY_CACHE_TTL=900 # ============================================================================== # DEBRID & OTHER SERVICE API KEYS # ============================================================================== # Provide a default TMDB access token to be used for the Title Matching filter if a user does not provide any. TMDB_ACCESS_TOKEN= TMDB_API_KEY= # Configure API keys for debrid services and others you plan to use. # 'DEFAULT_' values are pre-filled in the user's config page. # 'FORCED_' values override user settings and hide the option. # --- Real-Debrid --- DEFAULT_REALDEBRID_API_KEY= FORCED_REALDEBRID_API_KEY= # --- AllDebrid --- DEFAULT_ALLDEBRID_API_KEY= FORCED_ALLDEBRID_API_KEY= # --- Premiumize --- DEFAULT_PREMIUMIZE_API_KEY= FORCED_PREMIUMIZE_API_KEY= # --- Debrid-Link --- DEFAULT_DEBRIDLINK_API_KEY= FORCED_DEBRIDLINK_API_KEY= # --- Torbox --- DEFAULT_TORBOX_API_KEY= FORCED_TORBOX_API_KEY= # --- OffCloud --- DEFAULT_OFFCLOUD_API_KEY= FORCED_OFFCLOUD_API_KEY= DEFAULT_OFFCLOUD_EMAIL= FORCED_OFFCLOUD_EMAIL= DEFAULT_OFFCLOUD_PASSWORD= FORCED_OFFCLOUD_PASSWORD= # --- Put.io --- DEFAULT_PUTIO_CLIENT_ID= FORCED_PUTIO_CLIENT_ID= DEFAULT_PUTIO_CLIENT_SECRET= FORCED_PUTIO_CLIENT_SECRET= # --- EasyNews --- DEFAULT_EASYNEWS_USERNAME= FORCED_EASYNEWS_USERNAME= DEFAULT_EASYNEWS_PASSWORD= FORCED_EASYNEWS_PASSWORD= # --- EasyDebrid --- DEFAULT_EASYDEBRID_API_KEY= FORCED_EASYDEBRID_API_KEY= # --- Debrider --- DEFAULT_DEBRIDER_API_KEY= FORCED_DEBRIDER_API_KEY= # --- PikPak --- DEFAULT_PIKPAK_EMAIL= FORCED_PIKPAK_EMAIL= DEFAULT_PIKPAK_PASSWORD= FORCED_PIKPAK_PASSWORD= # --- Seedr --- DEFAULT_SEEDR_ENCODED_TOKEN= FORCED_SEEDR_ENCODED_TOKEN= # ============================================================================== # CUSTOMIZATION & ACCESS CONTROL # ============================================================================== # --- Custom HTML --- # Display custom HTML at the top of the addon's configuration page. # Example: CUSTOM_HTML="