add ability to download to multiple locations, based which one has more space

This commit is contained in:
Jurgis Sakalauskas
2023-10-20 18:12:26 +03:00
parent bada1cea1d
commit f38803d60d
3 changed files with 80 additions and 20 deletions
+12 -10
View File
@@ -1,21 +1,23 @@
PORT=3000
#needed only for docker-compose to map your filesystem, for docker run use "/srv/data/static" volume path mapping
STATIC_SERVE_FOLDER='/mnt/hdd/videos'
#needed only for docker-compose to map your filesystem, for docker run use "/srv/data/requests-log" volume path mapping
LOG_FILE_REQUESTS_FOLDER='/mnt/hdd/videos'
LOG_FILE_REQUESTS_NAME="static_log.txt"
#needed only for docker-compose to map your filesystem, for docker run use "/srv/data/db" volume path mapping
DB_FOLDER='/mnt/hdd/videos/db'
DB_FILENAME="db.db"
#needed only for docker-compose to map your filesystem, for docker run use "/srv/data/recent-searches" volume path mapping
RECENT_SEARCHES_FOLDER="/mnt/hdd/videos/recent-searches"
#actual env variables starts here
PORT=3000
LOG_FILE_REQUESTS_NAME="static_log.txt"
DB_FILENAME="db.db"
RECENT_SEARCHES_LIMIT=20
PATTERNS_TO_IGNORE='["AOE1/"]' #file path patterns to ignore from video files scan, must be in json format
#can be VIDEO_FILES_FOLDER_1, VIDEO_FILES_FOLDER_2, etc., but must be edited in docker-compose.yml as well
#also map to same folders in your transmission file system
VIDEO_FILES_FOLDER='/mnt/hdd/videos' #also torrent download dir
VIDEO_FILES_EXT='[".mkv", ".mp4", ".avi"]'
PATTERNS_TO_IGNORE='["AOE1/"]' #file path patterns to ignore from video files scan
LINKOMANIJA_USERNAME=user
LINKOMANIJA_PASSWORD=passw
LINKOMANIJA_PASSKEY=123pass456key789