mirror of
https://github.com/timvisee/ffsend.git
synced 2025-10-03 09:39:15 +02:00
Add environment variable to set default upload expiry time
See https://github.com/timvisee/ffsend/issues/124
This commit is contained in:
parent
d75e69841e
commit
ce5d31e546
2 changed files with 2 additions and 0 deletions
|
@ -545,6 +545,7 @@ to command line arguments:
|
|||
| `FFSEND_HOST` | `--host <URL>` | Upload host |
|
||||
| `FFSEND_TIMEOUT` | `--timeout <SECONDS>` | Request 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_API` | `--api <VERSION>` | Server API version, `-` to lookup |
|
||||
| `FFSEND_BASIC_AUTH` | `--basic-auth <USER:PASSWORD>` | Basic HTTP authentication credentials to use. |
|
||||
|
||||
|
|
|
@ -75,6 +75,7 @@ impl CmdArg for ArgExpiryTime {
|
|||
.alias("expire")
|
||||
.alias("expiry")
|
||||
.value_name("TIME")
|
||||
.env("FFSEND_EXPIRY_TIME")
|
||||
.help("The file expiry time")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue