From 578bfbd1cf16ddba3086730d89ce2dbfb171ec90 Mon Sep 17 00:00:00 2001 From: Matthew Rayfield Date: Mon, 14 Mar 2016 14:16:47 -0400 Subject: [PATCH] acl can now be specified in config --- lib/papercut.coffee | 3 ++- lib/store.coffee | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/papercut.coffee b/lib/papercut.coffee index 09f102d..99703bd 100644 --- a/lib/papercut.coffee +++ b/lib/papercut.coffee @@ -9,7 +9,8 @@ config = { process: 'resize' directory: '.' quality: 1, - custom: [] + custom: [], + acl: 'public-read' } module.exports = papercut = diff --git a/lib/store.coffee b/lib/store.coffee index 5ae8b26..0b128a7 100644 --- a/lib/store.coffee +++ b/lib/store.coffee @@ -66,7 +66,7 @@ exports.S3Store = class S3Store bucket: config.bucket @headers = 'Content-Type': "image/#{@config.extension}" - 'x-amz-acl': 'public-read' + 'x-amz-acl': "#{@config.acl}" ### Get relative file path on S3