Add support for redirecting to signed URLs

This commit is contained in:
Simon Detheridge
2020-04-15 12:22:54 +01:00
parent 2b9b165d72
commit 3637cd70ae
10 changed files with 217 additions and 21 deletions
@@ -70,6 +70,9 @@ settings =
buckets: JSON.parse(process.env['FALLBACK_BUCKET_MAPPING'] || '{}')
copyOnMiss: process.env['COPY_ON_MISS'] == 'true'
allowRedirects: if process.env['ALLOW_REDIRECTS'] == 'true' then true else false
signedUrlExpiryInMs: parseInt(process.env['LINK_EXPIRY_TIMEOUT'] || 60000)
path:
uploadFolder: Path.resolve(__dirname + "/../uploads")