-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
117 lines (83 loc) · 3.1 KB
/
.env.example
File metadata and controls
117 lines (83 loc) · 3.1 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
# ==================== API Settings ====================
HOST=0.0.0.0
PORT=8000
RELOAD=false
# ==================== CORS ====================
CORS_ORIGINS=http://localhost:3000,http://localhost:8000
# ==================== Database ====================
DATABASE_URL=sqlite:///./download_tasks.db
# ==================== Redis ====================
REDIS_URL=redis://localhost:6379
# ==================== Download Settings ====================
DOWNLOAD_DIR=./downloads
MAX_CONCURRENT_DOWNLOADS=3
AUTO_DELETE_AFTER=604800
# ==================== GPU Encoding ====================
ENABLE_GPU_ENCODING=false
GPU_ENCODER_TYPE=auto
GPU_ENCODER_PRESET=fast
# ==================== Aria2 ====================
ENABLE_ARIA2=false
ARIA2_MAX_CONNECTIONS=4
ARIA2_SPLIT=4
# ==================== Deno/JavaScript Runtime ====================
ENABLE_DENO=false
DENO_PATH=/usr/local/bin/deno
# ==================== yt-dlp Settings ====================
# YTDLP_PROXY=http://proxy:8080
# YTDLP_COOKIES_FILE=/path/to/cookies.txt
# ==================== Rate Limiting ====================
RATE_LIMIT_PER_MINUTE=60
# ==================== Security ====================
SECRET_KEY=your-secret-key-change-in-production
# ==================== JWT Authentication ====================
# Enable JWT authentication system (default: false)
ENABLE_JWT_AUTH=false
# Password required to issue new API keys
# If not set, API key issuance is disabled
# Example: API_KEY_ISSUE_PASSWORD=your-secure-password
API_KEY_ISSUE_PASSWORD=
# JWT algorithm (default: HS256)
JWT_ALGORITHM=HS256
# JWT token expiration in days (default: 30)
JWT_EXPIRATION_DAYS=30
# ==================== Feature Flags ====================
# Enable/disable specific features (all default to true)
# Video Info endpoint - get video information without downloading
ENABLE_FEATURE_VIDEO_INFO=true
# Download endpoint - create new download tasks
ENABLE_FEATURE_DOWNLOAD=true
# Status polling endpoint - check task status
ENABLE_FEATURE_STATUS=true
# File download endpoint - download completed files
ENABLE_FEATURE_FILE_DOWNLOAD=true
# Task cancellation - cancel running tasks
ENABLE_FEATURE_CANCEL=true
# Task deletion - delete tasks and files
ENABLE_FEATURE_DELETE=true
# Task listing - list all tasks
ENABLE_FEATURE_LIST_TASKS=true
# Subtitle download - download subtitles
ENABLE_FEATURE_SUBTITLES=true
# Thumbnail retrieval - get thumbnail URLs
ENABLE_FEATURE_THUMBNAIL=true
# Queue statistics - get queue status
ENABLE_FEATURE_QUEUE_STATS=true
# WebSocket support - real-time progress updates
ENABLE_FEATURE_WEBSOCKET=true
# MP3 metadata embedding - embed ID3 tags
ENABLE_FEATURE_MP3_METADATA=true
# Thumbnail embedding - embed thumbnails in audio
ENABLE_FEATURE_THUMBNAIL_EMBED=true
# GPU encoding support - use GPU for encoding
ENABLE_FEATURE_GPU_ENCODING=true
# Aria2 downloader support - use Aria2
ENABLE_FEATURE_ARIA2=true
# Custom format selection - allow custom formats
ENABLE_FEATURE_CUSTOM_FORMAT=true
# Quality selection - allow quality selection
ENABLE_FEATURE_QUALITY_SELECTION=true
# Proxy support - use proxy
ENABLE_FEATURE_PROXY=true
# Cookie support - use cookies
ENABLE_FEATURE_COOKIES=true