summaryrefslogtreecommitdiff
path: root/bucky/util/upload.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2017-12-13 05:29:42 +0100
committerJules Laplace <julescarbon@gmail.com>2017-12-13 05:29:42 +0100
commit3698f759ef8d643a4456df970236fe9f80cd2a2b (patch)
tree5c8e43d241552b809b1297a3fb1c67e3efa3b988 /bucky/util/upload.js
parent9487da34c83cb78992d4cb7f881aee358018e76a (diff)
yup
Diffstat (limited to 'bucky/util/upload.js')
-rw-r--r--bucky/util/upload.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/bucky/util/upload.js b/bucky/util/upload.js
index a1810a4..d7bf822 100644
--- a/bucky/util/upload.js
+++ b/bucky/util/upload.js
@@ -13,12 +13,11 @@ var acceptableuploadTypes = {
module.exports = {}
-module.exports.init = function (opt){
- options = opt
+module.exports.init = function (){
s3 = knox.createClient({
- key: opt.key,
- secret: opt.secret,
- bucket: opt.bucket,
+ key: process.env.S3_KEY,
+ secret: process.env.S3_SECRET,
+ bucket: process.env.S3_BUCKET,
})
}