Add DEFAULT_DOWNLOADS variable to set default download count
Fixes https://github.com/timvisee/send/issues/39
This commit is contained in:
parent
3bd9f00c25
commit
1a923d21b5
7 changed files with 19 additions and 7 deletions
|
@ -64,6 +64,11 @@ const conf = convict({
|
|||
default: [1, 2, 3, 4, 5, 20, 50, 100],
|
||||
env: 'DOWNLOAD_COUNTS'
|
||||
},
|
||||
default_downloads: {
|
||||
format: Number,
|
||||
default: 1,
|
||||
env: 'DEFAULT_DOWNLOADS'
|
||||
},
|
||||
max_downloads: {
|
||||
format: Number,
|
||||
default: 100,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue