-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
125 lines (95 loc) · 3.56 KB
/
.env.example
File metadata and controls
125 lines (95 loc) · 3.56 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
# ===========================================
# qBittorrent Download Handler Configuration
# ===========================================
#
# Copy this file to .env and customize the values for your environment.
# All variables are optional - defaults will be used if not specified.
#
# Run validation: deno run --allow-net --allow-read --allow-write --allow-env validate-config.js
# ===========================================
# QBITTORRENT API CONFIGURATION
# ===========================================
# qBittorrent server host (default: localhost)
QB_HOST=localhost
# qBittorrent Web UI port (default: 8080)
QB_PORT=8080
# Protocol for qBittorrent API (default: http)
QB_PROTOCOL=http
# qBittorrent Web UI username (optional - leave empty if no auth required)
QB_USERNAME=admin
# qBittorrent Web UI password (optional - leave empty if no auth required)
QB_PASSWORD=password
# ===========================================
# FILE PATHS
# ===========================================
# Destination directory for Empornium torrents
EMPORNIUM_FINISHED_PATH=/mnt/ST26/Torrents/Fertig/Porn/EmporniumFinished/
# Destination directory for OneJav torrents
ONEJAV_FINISHED_PATH=/mnt/ST26/Torrents/Fertig/Porn/OnejavFinished/
# Temporary download directory (where qBittorrent downloads files)
TEMP_DOWNLOAD_PATH=/mnt/Torrent/Torrents/Fertig
# ===========================================
# LOGGING CONFIGURATION
# ===========================================
# Main log file path (default: ./log.log)
LOG_FILE=./log.log
# Error log file path (default: ./error.log)
ERROR_LOG_FILE=./error.log
# Logging level: debug, info, warn, error (default: info)
LOG_LEVEL=info
# Maximum log file size in bytes before rotation (default: 1048576 = 1MB)
MAX_LOG_SIZE=1048576
# Log rotation strategy: size, daily, none (default: size)
LOG_ROTATION=size
# ===========================================
# PROCESSING CONFIGURATION
# ===========================================
# Maximum number of retry attempts for failed operations (default: 3)
MAX_RETRIES=3
# Delay between retry attempts in milliseconds (default: 1000)
RETRY_DELAY=1000
# API timeout in milliseconds (default: 30000 = 30 seconds)
API_TIMEOUT=30000
# Maximum number of concurrent operations (default: 5)
CONCURRENT_OPS=5
# ===========================================
# FILE HANDLING
# ===========================================
# Maximum file size to process in bytes (default: 10737418240 = 10GB)
MAX_FILE_SIZE=10737418240
# ===========================================
# ONEJAV FETCHER (OPTIONAL)
# ===========================================
# Enable/disable OneJav torrent fetching (default: true)
ONEJAV_ENABLED=true
# OneJav website base URL (default: https://onejav.com)
ONEJAV_BASE_URL=https://onejav.com
# Directory to save downloaded OneJav torrents (default: ./torrents/)
ONEJAV_DOWNLOAD_PATH=./torrents/
# Rate limit between requests in milliseconds (default: 1000)
ONEJAV_RATE_LIMIT=1000
# Maximum number of pages to fetch (default: 10)
ONEJAV_MAX_PAGES=10
# ===========================================
# USAGE EXAMPLES
# ===========================================
#
# Minimal configuration (just change paths):
# QB_HOST=my-qbittorrent-server
# EMPORNIUM_FINISHED_PATH=/home/user/torrents/empornium/
# ONEJAV_FINISHED_PATH=/home/user/torrents/onejav/
#
# Docker configuration:
# QB_HOST=qbittorrent
# QB_PORT=8080
# EMPORNIUM_FINISHED_PATH=/data/empornium/
# ONEJAV_FINISHED_PATH=/data/onejav/
#
# Development with verbose logging:
# LOG_LEVEL=debug
# MAX_LOG_SIZE=5242880 # 5MB
#
# High-performance setup:
# CONCURRENT_OPS=10
# API_TIMEOUT=60000
# MAX_RETRIES=5