Skip to content

Commit

Permalink
Merge pull request #7 from mysociety/fix-whitelist-option
Browse files Browse the repository at this point in the history
Fix reading whitelist from environment
  • Loading branch information
James McKinney committed Oct 6, 2014
2 parents 712b58b + 36cf35d commit 869c9f7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
var app = require('./lib/proxy')();

var port = process.env.PORT || 5000;
var whitelist = process.env.WHITELIST || []; // [/\.gov$/, /google\.com$/]
app.listen(port, function () {
console.log('Listening on ' + port);
});
2 changes: 1 addition & 1 deletion lib/proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ var express = require('express')
// @see http://aaronheckmann.posterous.com/graphicsmagick-on-heroku-with-nodejs
, imageMagick = gm.subClass({imageMagick: true})
, app = express.createServer(express.logger())
, whitelist = []
, whitelist = process.env.WHITELIST || [] // [/\.gov$/, /google\.com$/]
, mimeTypes = [
'image/jpeg',
'image/png',
Expand Down

0 comments on commit 869c9f7

Please sign in to comment.