-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathenv.example.env
More file actions
37 lines (29 loc) · 993 Bytes
/
env.example.env
File metadata and controls
37 lines (29 loc) · 993 Bytes
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
# qBitTorrent WebUI settings
QB_HOST=192.168.1.100
QB_PORT=8080
QB_USERNAME=admin
QB_PASSWORD=adminadmin
# Paths
QB_DOWNLOAD_PATH=/downloads
LOG_FILE=/logs/qbt-cleanup.log
# Script behavior
# Set to true to test without making changes
# DRY_RUN=true
# Safety guardrails
# Comma-separated directory names to never delete from QB_DOWNLOAD_PATH
EXCLUDED_DIR_NAMES=.stfolder,@eaDir,lost+found
# Skip deleting directories newer than this many seconds
# MIN_DIR_AGE_SECONDS=3600
# By default the script refuses to clean up when qBitTorrent reports zero torrents
# Set to true only if an empty client should still allow cleanup
# ALLOW_EMPTY_CLIENT=false
# Execution mode
# daemon: run continuously with sleep interval
# cron: run once and exit (for cron scheduling)
# Default: daemon
EXECUTION_MODE=daemon
# Sleep interval in seconds (for daemon mode)
SLEEP_INTERVAL=14400
# Cron schedule (used when EXECUTION_MODE=cron with Docker)
# Default: Run every 4 hours
CRON_SCHEDULE="0 */4 * * *"