mirror of
https://github.com/timvisee/ffsend.git
synced 2025-10-03 01:29:16 +02:00
Add FFSEND_DOWNLOAD_LIMIT environment variable
This commit is contained in:
parent
4ced2ea4d0
commit
e03dec6d91
2 changed files with 2 additions and 0 deletions
|
@ -557,6 +557,7 @@ to command line arguments:
|
||||||
| `FFSEND_TIMEOUT` | `--timeout <SECONDS>` | Request timeout (0 to disable) |
|
| `FFSEND_TIMEOUT` | `--timeout <SECONDS>` | Request timeout (0 to disable) |
|
||||||
| `FFSEND_TRANSFER_TIMEOUT` | `--transfer-timeout <SECONDS>` | Transfer timeout (0 to disable) |
|
| `FFSEND_TRANSFER_TIMEOUT` | `--transfer-timeout <SECONDS>` | Transfer timeout (0 to disable) |
|
||||||
| `FFSEND_EXPIRY_TIME` | `--expiry-time <SECONDS>` | Default upload expiry time |
|
| `FFSEND_EXPIRY_TIME` | `--expiry-time <SECONDS>` | Default upload expiry time |
|
||||||
|
| `FFSEND_DOWNLOAD_LIMIT` | `--download-limit <DOWNLOADS>` | Default download limit |
|
||||||
| `FFSEND_API` | `--api <VERSION>` | Server API version, `-` to lookup |
|
| `FFSEND_API` | `--api <VERSION>` | Server API version, `-` to lookup |
|
||||||
| `FFSEND_BASIC_AUTH` | `--basic-auth <USER:PASSWORD>` | Basic HTTP authentication credentials to use. |
|
| `FFSEND_BASIC_AUTH` | `--basic-auth <USER:PASSWORD>` | Basic HTTP authentication credentials to use. |
|
||||||
|
|
||||||
|
|
|
@ -68,6 +68,7 @@ impl CmdArg for ArgDownloadLimit {
|
||||||
.alias("downloads")
|
.alias("downloads")
|
||||||
.alias("download")
|
.alias("download")
|
||||||
.value_name("COUNT")
|
.value_name("COUNT")
|
||||||
|
.env("FFSEND_DOWNLOAD_LIMIT")
|
||||||
.help("The file download limit")
|
.help("The file download limit")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue