mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-06 06:00:53 +03:00
made download count and expiry options server configurable
This commit is contained in:
@@ -9,16 +9,6 @@ const conf = convict({
|
||||
default: '',
|
||||
env: 'S3_BUCKET'
|
||||
},
|
||||
num_of_prefixes: {
|
||||
format: Number,
|
||||
default: 5,
|
||||
env: 'NUM_OF_PREFIXES'
|
||||
},
|
||||
expire_prefixes: {
|
||||
format: Array,
|
||||
default: ['5minutes', '1hour', '1day', '1week', '2weeks'],
|
||||
env: 'EXPIRE_PREFIXES'
|
||||
},
|
||||
expire_times_seconds: {
|
||||
format: Array,
|
||||
default: [300, 3600, 86400, 604800],
|
||||
@@ -39,6 +29,11 @@ const conf = convict({
|
||||
default: 86400,
|
||||
env: 'ANON_MAX_EXPIRE_SECONDS'
|
||||
},
|
||||
download_counts: {
|
||||
format: Array,
|
||||
default: [1, 2, 3, 4, 5, 20, 50, 100, 200],
|
||||
env: 'DOWNLOAD_COUNTS'
|
||||
},
|
||||
max_downloads: {
|
||||
format: Number,
|
||||
default: 200,
|
||||
|
||||
Reference in New Issue
Block a user