Support Webshare guest downloads without login.
Credentials optional: empty WEBSHARE_* uses file_link without wst (free CDN). Verified against live API; docs and tests updated. Includes cancel→dequeue fix for queued downloads.
This commit is contained in:
@@ -6,8 +6,9 @@ services:
|
||||
environment:
|
||||
PORT: "3001"
|
||||
BASE_URL: ${BASE_URL:-http://webshare-api:3001}
|
||||
WEBSHARE_USERNAME: ${WEBSHARE_USERNAME:?set WEBSHARE_USERNAME}
|
||||
WEBSHARE_PASSWORD: ${WEBSHARE_PASSWORD:?set WEBSHARE_PASSWORD}
|
||||
# Optional — omit both for guest/free downloads (slower CDN)
|
||||
WEBSHARE_USERNAME: ${WEBSHARE_USERNAME:-}
|
||||
WEBSHARE_PASSWORD: ${WEBSHARE_PASSWORD:-}
|
||||
DOWNLOAD_PATH: ${DOWNLOAD_PATH:-/downloads/webshare}
|
||||
MEDIA_ROOT: ${MEDIA_ROOT:-/data}
|
||||
MAX_CONCURRENT_DOWNLOADS: ${MAX_CONCURRENT_DOWNLOADS:-2}
|
||||
|
||||
Reference in New Issue
Block a user