create signed urls that are valid for a day

sometimes the downloads take overly long and it's annoying that they
expire so soon.
This commit is contained in:
Girish Ramakrishnan
2016-08-24 17:53:28 -07:00
parent d60b386bca
commit 22d86ff5b9
2 changed files with 2 additions and 2 deletions

View File

@@ -72,7 +72,7 @@ function getRestoreUrl(apiConfig, filename, callback) {
var params = {
Bucket: apiConfig.bucket,
Key: apiConfig.prefix + '/' + filename,
Expires: 60 * 60 /* 60 minutes */
Expires: 60 * 60 * 24 /* 1 day */
};
var url = s3.getSignedUrl('getObject', params);