Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
159 lines (132 loc) · 8.08 KB
/
Copy path.env.example
File metadata and controls
159 lines (132 loc) · 8.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
# StreamVault environment configuration
#
# Copy this file to .env and fill in the values before running:
# cp .env.example .env
# docker compose up -d --build
# ── Rails secrets ────────────────────────────────────────────────
# Master key for decrypting Rails encrypted credentials. StreamVault does not
# ship an encrypted credentials file, so leave this blank unless you add one.
RAILS_MASTER_KEY=
# Secret key base for session cookies. Generate with:
# openssl rand -hex 64
SECRET_KEY_BASE=
# ── Active Record Encryption ─────────────────────────────────────
# 32-byte values (64 hexadecimal characters). Generate each separately with:
# openssl rand -hex 32
ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY=
ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY=
ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT=
# ── App configuration ────────────────────────────────────────────
# Domain the app is served from (recommended for host authorization on public
# deployments; may be left blank for local-only use).
APP_DOMAIN=
# ── TLS ──────────────────────────────────────────────────────────
# Production assumes a TLS-terminating proxy (Cloudflare Tunnel, Caddy, nginx)
# and marks session cookies secure. If the app is reached directly over plain
# HTTP — a LAN address, or the container's published port — both must be false,
# otherwise unauthenticated requests are redirected to https:// and fail.
# `docker compose up` serves plain HTTP on localhost, so these are off for
# the quickstart below. Set both back to true (or delete the lines) when a
# TLS terminator sits in front of the app.
ASSUME_SSL=false
FORCE_SSL=false
# ── Signups ──────────────────────────────────────────────────────
# Whether new users can self-register. Disabled by default for security.
# Set to "true" to enable the signup page. When disabled, create users
# via Rails console (see README).
ENABLE_SIGNUPS=false
# ── Playback ─────────────────────────────────────────────────────
# Window before the end of an episode where the "skip to the next
# episode" button appears, when the file has no closing-credits chapter.
# 0 disables the estimate but keeps chapter markers. Clamped to 600.
NEXT_EPISODE_PROMPT_SECONDS=90
# ── Database (Postgres) ──────────────────────────────────────────
# Credentials for the Postgres container. Set POSTGRES_PASSWORD to
# a strong value (generate with: openssl rand -hex 16).
POSTGRES_USER=streamvault
POSTGRES_PASSWORD=
POSTGRES_DB=streamvault
# Host port to expose the app on (container always listens on 80).
PORT=3000
# ── Background jobs ─────────────────────────────────────────────
# Jobs run in the `worker` compose service, so the web container leaves
# SOLID_QUEUE_IN_PUMA unset. Set it to true only for a single-container
# deployment where Puma should run the supervisor itself.
SOLID_QUEUE_IN_PUMA=
# Worker processes; each one runs three threads (see config/queue.yml).
JOB_PROCESSES=1
# The web process stops expired HLS sessions and removes their segments,
# because it owns the PIDs and tmp/hls paths they reference. Set to false
# only if you clean tmp/hls yourself; no other service can do it.
HLS_CLEANUP_IN_WEB=true
# ── External APIs ────────────────────────────────────────────────
# Torrentio API base URL. Default is the public instance, but it may
# be blocked by Cloudflare. Consider running a self-hosted proxy
# (see torrentio-proxy/ directory).
TORRENTIO_API_BASE_URL=https://torrentio.strem.fun
# ── Stream Provider ───────────────────────────────────────────────
# Which addon to use for stream listings and resolution.
# torrentio → Torrentio only (default, backward-compatible)
# comet → Comet primary, Torrentio fallback
# aiostreams → AIOStreams primary, Torrentio fallback
# auto → AIOStreams (if configured), Comet (if configured),
# then Torrentio
# Self-host Comet for maximum stability (no Cloudflare blocks, no rate
# limits, no peak-hour congestion). See proxy/comet/ for docker setup.
STREAM_PROVIDER=torrentio
# Comet addon URL. Set to your self-hosted Comet instance
# (e.g. http://<vps-tailscale-ip>:8000 or https://comet.example.com).
# Leave blank to disable Comet.
# COMET_URL=http://100.x.x.x:8000
# AIOStreams addon URL. Use the install/manifest link generated by your
# instance (the part ending in /manifest.json is optional), for example:
# https://aiostreams.example.com/stremio/<uuid>
# AIOStreams owns its source/debrid configuration, so no key is needed here.
# AIOSTREAMS_URL=https://aiostreams.example.com/stremio/<uuid>
# Forward proxy for AIOStreams requests. Leave commented to connect directly.
# AIOSTREAMS_PROXY=http://<vps-ip>:8888
# Forward proxy for Comet requests. Set if Comet needs a proxy to reach
# torrent indexers or your debrid service. Usually blank (Comet runs on the VPS
# which has direct access). Leave commented to connect directly.
# COMET_PROXY=http://<vps-ip>:8888
# Forward proxy for torrentio requests. Set to the Tinyproxy address
# (see proxy/torrentio/ directory) if torrentio is blocked by Cloudflare
# from your server. Leave commented to connect directly.
# TORRENTIO_PROXY=http://<vps-ip>:8888
# Forward proxy for Cinemeta metadata requests (popular/trending,
# search, episode lists). Cinemeta is NOT behind the same Cloudflare
# WAF as torrentio and usually works directly. Set this only if your
# network blocks cinemeta too. Leave commented to connect directly.
# CINEMETA_PROXY=http://<vps-ip>:8888
# RealDebrid API base URL.
REALDEBRID_API_BASE_URL=https://api.real-debrid.com/rest/1.0
# Optional installation-wide debrid keys. Accounts normally enter their own
# key in Settings; when they have none these are used, and an administrator
# can also set a team key in Team settings (which takes precedence over env).
# Leave blank to require per-account keys.
# REALDEBRID_API_KEY=
# TORBOX_API_KEY=
# TorBox API base URL.
TORBOX_API_BASE_URL=https://api.torbox.app/v1/api
# Extra hosts that may serve the final media file (comma-separated).
# RealDebrid/TorBox CDNs and configured addon hosts are already allowed; use
# this when an addon proxies playback through another domain.
# STREAM_SOURCE_HOSTS=stremthru.example.com
# OMDB API key for ratings metadata. Get one at https://www.omdbapi.com/apikey.aspx
# Child accounts need OMDB or TMDB: without one, titles have no certification
# and are hidden below the 18+ cap.
OMDB_API_KEY=
# TMDB Read Access Token (v4 bearer token) for "Recommended for You"
# on the home page, and the fallback certification source for child accounts.
# Get one at https://www.themoviedb.org/settings/api
TMDB_READ_ACCESS_TOKEN=
# SubDL API key for external subtitle fallback. Get one at https://subdl.com/panel/api
SUBDL_API_KEY=
# ── Thruster (production proxy) ──────────────────────────────────
# Thruster is the Go HTTP/2 proxy wrapping Puma (see Dockerfile CMD).
# These only apply when running behind Thruster; ignored by bare Puma.
# 0 = no write deadline (required for movie-length streaming responses;
# Thruster default is 30s absolute WriteTimeout kills streams at 30s)
HTTP_WRITE_TIMEOUT=0
# 0 = no idle timeout (avoids closing keep-alive during reconnect)
HTTP_IDLE_TIMEOUT=0