archive
/
tstatic
Archived
1
Fork 0

Fix IP whitelisting

This commit is contained in:
Jake Howard 2017-02-13 13:39:26 +00:00
parent c8862c1a2a
commit 9933f7574e
1 changed files with 1 additions and 2 deletions

View File

@ -20,14 +20,13 @@ const basicAuth = require('./basic-auth');
if (consts.ALLOWED_IPS) {
app.set('trust proxy', true);
app.use(AccessControl({
mode: 'allow',
allows: consts.ALLOWED_IPS,
forceConnectionAddress: true,
statusCode: 404
}));
}
// Custom Middleware
app.use(logging);
app.use(basicAuth);