Skip to content
This repository has been archived by the owner on Jul 5, 2022. It is now read-only.

Commit

Permalink
Conditional AWS auth.
Browse files Browse the repository at this point in the history
  • Loading branch information
superafroman committed Jul 18, 2016
1 parent c5e892d commit 1dcf884
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion server/routes/proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,15 @@ const config = require('config');
const log4js = require('log4js');

const logger = log4js.getLogger('routes/proxy');
const s3 = new aws.S3(config.get('aws'));

let s3;

if (config.get('aws.awsAccessKey') !== '') {
s3 = new aws.S3(config.get('aws'));
} else {
s3 = new aws.S3();
}


module.exports = function configureRoutes(router) {

Expand Down

0 comments on commit 1dcf884

Please sign in to comment.