-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.env.example
More file actions
114 lines (90 loc) · 4.98 KB
/
.env.example
File metadata and controls
114 lines (90 loc) · 4.98 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
PUID=1000 # Replace with your actual UID, or 0 for root
PGID=1000 # Replace with your actual GID, or 0 for root
# CHANGE THIS IN PRODUCTION
QUART_SECRET_KEY=a-very-secret-key
# enter your MAM ID from https://www.myanonamouse.net/preferences/index.php?view=security
MAM_ID=mam_id_here-generated_from_myanonamouse_website
# Torrent Client Settings
# Supported types: qbittorrent, deluge, rtorrent, transmission
TORRENT_CLIENT_TYPE=qbittorrent
TORRENT_CLIENT_URL=http://qbittorrent:6767
TORRENT_CLIENT_USERNAME=your_torrent_username
TORRENT_CLIENT_PASSWORD=your_torrent_password
TORRENT_CLIENT_CATEGORY=audiobooks # default category to select for downloads
# qBittorrent only: force start newly added torrents immediately
QB_FORCE_START=false
# rTorrent only: use HTTP Digest authentication instead of Basic auth (required by some seedbox providers)
RTORRENT_DIGEST_AUTH=false
# Dynamically update seedbox IP based on current public IP
ENABLE_DYNAMIC_IP_UPDATE=true
DYNAMIC_IP_UPDATE_INTERVAL_HOURS=3 # how often (in hours) to check for IP changes
# Automatically top up VIP credit using bonus points
AUTO_BUY_VIP=false
AUTO_BUY_VIP_INTERVAL_HOURS=24 # how often (in hours) to automatically purchase VIP credit
# Upload Credit Auto-Buy Settings
# Automatically purchase upload credit when ratio or buffer falls below thresholds
AUTO_BUY_UPLOAD_ON_RATIO=false # enable auto-buy when ratio falls below threshold
AUTO_BUY_UPLOAD_RATIO_THRESHOLD=1.5 # trigger purchase if ratio drops below this (MAM minimum is 1.0)
AUTO_BUY_UPLOAD_RATIO_AMOUNT=50 # GB to purchase when ratio threshold is hit (multiples of 50 only)
AUTO_BUY_UPLOAD_ON_BUFFER=false # enable auto-buy when upload buffer is too low
AUTO_BUY_UPLOAD_BUFFER_THRESHOLD=10 # trigger purchase if (uploaded - downloaded) drops below this many GB
AUTO_BUY_UPLOAD_BUFFER_AMOUNT=50 # GB to purchase when buffer threshold is hit (multiples of 50 only)
AUTO_BUY_UPLOAD_ON_BONUS=false # enable auto-buy when bonus points exceed a threshold
AUTO_BUY_UPLOAD_BONUS_THRESHOLD=5000 # trigger purchases while bonus points remain at or above this value
AUTO_BUY_UPLOAD_BONUS_AMOUNT=50 # GB to purchase per bonus-threshold check (multiples of 50 only)
AUTO_BUY_UPLOAD_CHECK_INTERVAL_HOURS=6 # how often to check ratio, buffer, and bonus thresholds (only when auto-buy enabled)
# Block downloads if torrent size exceeds available buffer (prompts user to buy upload credit)
BLOCK_DOWNLOAD_ON_LOW_BUFFER=true
# Attempt to purchase a personal Freeleech wedge before each download add.
# If purchase fails, download still proceeds.
AUTO_BUY_PERSONAL_FL_ON_DOWNLOAD=false
# Enable frontend haptic feedback (Vibration API + fallback where available)
HAPTICS_ENABLED=true
# App data storage
DATA_PATH=./data
# Enable this to have MouseSearch automatically hard link files when torrents are added
# from the "LOCAL_TORRENT_DOWNLOAD_PATH" folder to the "ORGANIZED_PATH" folder in Author/Title format.
AUTO_ORGANIZE_ON_ADD=false
# Enable this to have MouseSearch copy files instead of hardlinking them
AUTO_ORGANIZE_USE_COPY=false
# Enable this to have MouseSearch check for unorganized files on a schedule
AUTO_ORGANIZE_ON_SCHEDULE=true
AUTO_ORGANIZE_INTERVAL_HOURS=1 # how often (in hours) to scan for unorganized files
# Download Storage Paths (if using auto-organization)
# - must ensure these paths are on the same device and Docker volume, if running in Docker)
# to ensure hard links can be created
LOCAL_TORRENT_DOWNLOAD_PATH=/downloads/torrents/
REMOTE_TORRENT_DOWNLOAD_PATH=
ORGANIZED_PATH=/downloads/organized/
DEFAULT_RELATIVE_PATH_TEMPLATE={Author}/{Title}
# Legacy compatibility:
# TORRENT_DOWNLOAD_PATH is still accepted as an alias for LOCAL_TORRENT_DOWNLOAD_PATH,
# but new installs should use LOCAL_TORRENT_DOWNLOAD_PATH.
# Recommended File Structure
# downloads
# ├── organized <- where your organized files will appear (point Audiobookshelf here)
# └── torrents <- where your torrent client downloads files to
# Thumbnail Caching
# Enable filesystem caching of thumbnail images to reduce load on MAM servers.
# Recommended if you experience slow thumbnail loading or rate limit issues.
# Cached thumbnails are stored in DATA_PATH/cache/thumbnails and expire after 30 days.
ENABLE_FILESYSTEM_THUMBNAIL_CACHE=true
THUMBNAIL_CACHE_MAX_SIZE_MB=500
# Search
# Maximum number of search results returned per query.
MAX_SEARCH_RESULTS=50
# Maximum number of autocomplete suggestions returned per query.
MAX_AUTOCOMPLETE_RESULTS=20
# Comma-separated fields shown in search results.
RESULTS_DISPLAY_FIELDS=narrator,series,file_size,file_type,seeders
# Logging
# Main application logger level: DEBUG, INFO, WARNING, ERROR
APP_LOG_LEVEL=INFO
# Enable app-level HTTP request logging
LOG_HTTP_REQUESTS=false
# Include static asset requests in app-level request logs
LOG_HTTP_REQUESTS_INCLUDE_STATIC=false
# Include /events (SSE) requests in app-level request logs
LOG_HTTP_REQUESTS_INCLUDE_EVENTS=false
# Hypercorn raw access logs destination (/dev/null to disable, "-" for stdout)
ACCESS_LOGFILE=/dev/null