Download Counter
Download count tracks the number of times a file has been downloaded/visited/opened. It will be saved in a persistent redis database (-v redissave:/var/lib/redis/
).
Folders itself will not be tracked. In batch downloads the download count will intuitively be increased for each (nested) file in the batch.
Files are tracked based on their (full) file path. Therefore renaming a file will change/reset the download count.
⚙️ Configuration
Variable | Default | Values | Details |
---|---|---|---|
DOWNLOAD_COUNTER | true | true false | added in v0.1 |
How to set configuration options
Set the environment variables when starting the container.
Use
Use
docker run
...- ...with
-e DOWNLOAD_COUNTER=true
- ...with
--env-file .env
and placeDOWNLOAD_COUNTER=true
in the file