made download count and expiry options server configurable
This commit is contained in:
parent
b61bf3c867
commit
e2259ae737
6 changed files with 22 additions and 28 deletions
|
@ -55,6 +55,8 @@ module.exports = async function(req, res) {
|
|||
MAX_ARCHIVES_PER_USER: ${config.max_archives_per_user}
|
||||
};
|
||||
var DEFAULTS = {
|
||||
DOWNLOAD_COUNTS: ${JSON.stringify(config.download_counts)},
|
||||
EXPIRE_TIMES_SECONDS: ${JSON.stringify(config.expire_times_seconds)},
|
||||
EXPIRE_SECONDS: ${config.default_expire_seconds}
|
||||
};
|
||||
${authConfig};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue