Clear out old stuff
This commit is contained in:
parent
e526167c62
commit
1aa8d8d88d
3 changed files with 0 additions and 38 deletions
|
@ -15,30 +15,6 @@ module.exports = function(environment) {
|
|||
genus: 'hymenobacter',
|
||||
},
|
||||
podModulePrefix: 'hymenobacterdotinfo/pods',
|
||||
'simple-auth': {
|
||||
session: 'session:custom',
|
||||
authorizer: 'simple-auth-authorizer:token',
|
||||
store: 'simple-auth-session-store:local-storage',
|
||||
routeAfterAuthentication: 'protected.index',
|
||||
},
|
||||
'simple-auth-token': {
|
||||
identificationField: 'email',
|
||||
passwordField: 'password',
|
||||
tokenPropertyName: 'token',
|
||||
authorizationPrefix: 'Bearer ',
|
||||
authorizationHeaderName: 'Authorization',
|
||||
refreshAccessTokens: true,
|
||||
timeFactor: 1000, // 1000 ms/s; JWT returned in unix time seconds
|
||||
refreshLeeway: 1800, // (60 s/min) * (30 min) = 1800 s
|
||||
},
|
||||
contentSecurityPolicy: {
|
||||
'default-src': "'none'",
|
||||
'script-src': "'self'",
|
||||
'font-src': "'self'",
|
||||
'img-src': "'self' data:",
|
||||
'style-src': "'self' 'unsafe-inline'",
|
||||
'media-src': "'self'"
|
||||
},
|
||||
flashMessageDefaults: {
|
||||
sticky: true,
|
||||
type: 'error',
|
||||
|
@ -62,11 +38,7 @@ module.exports = function(environment) {
|
|||
apiURL = 'https://bactdb.herokuapp.com';
|
||||
}
|
||||
|
||||
ENV['simple-auth']['crossOriginWhitelist'] = [apiURL];
|
||||
ENV['simple-auth-token']['serverTokenEndpoint'] = apiURL + '/api/authenticate';
|
||||
ENV['simple-auth-token']['serverTokenRefreshEndpoint'] = apiURL + '/api/refresh';
|
||||
ENV.apiURL = apiURL;
|
||||
ENV.contentSecurityPolicy['connect-src'] = "'self' " + apiURL;
|
||||
|
||||
return ENV;
|
||||
};
|
||||
|
|
Reference in a new issue