Add FFSEND_DOWNLOAD_LIMIT environment variable

This commit is contained in:
timvisee 2021-05-08 00:06:59 +02:00
parent 4ced2ea4d0
commit e03dec6d91
No known key found for this signature in database
GPG key ID: B8DB720BC383E172
2 changed files with 2 additions and 0 deletions

View file

@ -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. |

View file

@ -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")
} }
} }