1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/web/ synced 2025-03-16 00:00:03 +01:00
VILLASweb/config/environment.js

69 lines
1.6 KiB
JavaScript
Raw Permalink Normal View History

/* jshint node: true */
module.exports = function(environment) {
var ENV = {
modulePrefix: 'lab-mashup',
environment: environment,
baseURL: '/',
locationType: 'none',
EmberENV: {
FEATURES: {
// Here you can enable experimental features on an ember canary build
// e.g. 'with-controller': true
}
},
APP: {
// Here you can pass flags/options to your application instance
// when it is created
2015-10-28 05:53:20 -04:00
API_HOST: '',
UPDATE_RATE: 200,
2015-10-28 06:15:20 -04:00
SHOW_EXTENDED_VIEW: process.env.SHOW_EXTENDED_VIEW,
},
contentSecurityPolicy: {
'default-src': "'none'",
2015-10-09 09:22:35 +02:00
'script-src': "'self' 'unsafe-eval'",
'font-src': "'self'",
'connect-src': "'self' 192.168.99.100:80",
'img-src': "'self'",
2015-10-09 09:22:35 +02:00
'style-src': "'self' 'unsafe-inline'",
'media-src': "'self'"
}
};
2015-10-28 05:53:20 -04:00
// disable mirage
ENV['ember-cli-mirage'] = {
enabled: false
}
if (environment === 'development') {
// ENV.APP.LOG_RESOLVER = true;
// ENV.APP.LOG_ACTIVE_GENERATION = true;
// ENV.APP.LOG_TRANSITIONS = true;
// ENV.APP.LOG_TRANSITIONS_INTERNAL = true;
// ENV.APP.LOG_VIEW_LOOKUPS = true;
ENV.APP.API_HOST = 'http://192.168.99.100:80';
}
if (environment === 'test') {
// Testem prefers this...
ENV.baseURL = '/';
ENV.locationType = 'none';
// keep test console output quieter
ENV.APP.LOG_ACTIVE_GENERATION = false;
ENV.APP.LOG_VIEW_LOOKUPS = false;
ENV.APP.rootElement = '#ember-testing';
}
if (environment === 'production') {
ENV.baseURL = '/simple/';
2015-10-28 05:53:20 -04:00
}
return ENV;
};