Set up production env

This commit is contained in:
Matthew Dillon 2015-01-28 12:14:55 -09:00
parent 518d140aef
commit 3efc449e94

View file

@ -54,7 +54,20 @@ module.exports = function(environment) {
} }
if (environment === 'production') { if (environment === 'production') {
ENV['simple-auth'] = {
authorizer: 'authorizers:custom',
crossOriginWhitelist: ['https://bactdb.herokuapp.com']
}
ENV.apiURL = 'https://bactdb.herokuapp.com';
ENV.contentSecurityPolicy = {
'default-src': "'none'",
'script-src': "'self'",
'font-src': "'self'",
'connect-src': "'self' https://bactdb.herokuapp.com",
'img-src': "'self'",
'style-src': "'self'",
'media-src': "'self'"
}
} }
return ENV; return ENV;