-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
61 lines (44 loc) · 2.47 KB
/
.env.example
File metadata and controls
61 lines (44 loc) · 2.47 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
# ==========================================
# Random Video Clips Streaming Server Settings
# ==========================================
# ── 1. Directories ───────────────────────────────────────────────
# Absolute or relative path to your source video directory
VIDEO_FOLDER=./videos
# Where generated chunks are stored temporarily (default: ./chunks)
# CHUNK_FOLDER=./chunks
# Optional folder for background audio loops (uncomment to use)
# AUDIO_FOLDER=./audio
# Persistent stats (hours played, chunks pushed/created). Mount this so stats survive new deployments.
# STATS_DIR=./stats
# ── 2. Network & Ports ───────────────────────────────────────────
# Internal dashboard UI port (mapped to localhost)
PORT=8081
# External port mapping (used for API status and dashboard readouts)
# EXTERNAL_PORT=8081
# HLS streaming port (for VLC, Safari, or external players)
HLS_PORT=8082
# Container timezone (used by cron run history, chunk metadata timestamps, UI time display)
# TZ=Europe/Amsterdam
# ── 3. Chunk Generation Tuning ───────────────────────────────────
# Hardware Acceleration: "nvidia" for GPU acceleration or "none" for CPU encoding
HW_ACCEL=none
# Total minimum length of a generated chunk in seconds
CHUNK_DURATION=300
# Minimum length of an individual random video cut (in seconds)
CLIP_MIN=6
# Maximum length of an individual random video cut (in seconds)
CLIP_MAX=6
# How many chunks to generate per cron/manual cycle
# CHUNKS_PER_RUN=4
# Maximum number of chunks to keep on disk before pruning the oldest
# MAX_CHUNKS=56
# Host cron: for programmatic control from Admin UI, set PROJECT_ROOT to your project path on host.
# PROJECT_ROOT=/path/to/project
# ── 4. TubeArchivist metadata (optional) ─────────────────────────────────────
# When set, chunk generator fetches video metadata from TubeArchivist and extracts
# "Model - <url>" from descriptions. Requires both URL and token.
# TUBEARCHIVIST_URL=https://ta.example.com
# TUBEARCHIVIST_TOKEN=your_api_token
# If TubeArchivist returns no model, use this as the watermark text (optional).
# Test mode (/generate_chunk.sh test) uses "Sample watermark" when both are empty.
# WATERMARK_FALLBACK=My channel