mirror of
https://git.rwth-aachen.de/acs/public/villas/web/
synced 2025-03-09 00:00:01 +01:00
Add environment api host
Static IP is needed by production to access server from client.
This commit is contained in:
parent
05b404404d
commit
5dc261c4a1
2 changed files with 9 additions and 2 deletions
|
@ -1,7 +1,8 @@
|
|||
import DS from 'ember-data';
|
||||
import ENV from '../config/environment';
|
||||
|
||||
export default DS.RESTAdapter.extend({
|
||||
host: 'http://localhost:4200',
|
||||
host: ENV.APP.API_HOST,
|
||||
namespace: 'api/ngsi10',
|
||||
headers: {
|
||||
Accept: 'application/json'
|
||||
|
|
|
@ -16,13 +16,15 @@ module.exports = function(environment) {
|
|||
APP: {
|
||||
// Here you can pass flags/options to your application instance
|
||||
// when it is created
|
||||
|
||||
API_HOST: 'http://46.101.131.212:80'
|
||||
},
|
||||
|
||||
contentSecurityPolicy: {
|
||||
'default-src': "'none'",
|
||||
'script-src': "'self'",
|
||||
'font-src': "'self'",
|
||||
'connect-src': "'self'",
|
||||
'connect-src': "'self' 46.101.131.212:80",
|
||||
'img-src': "'self'",
|
||||
'style-src': "'self'",
|
||||
'media-src': "'self'"
|
||||
|
@ -36,6 +38,8 @@ module.exports = function(environment) {
|
|||
// ENV.APP.LOG_TRANSITIONS_INTERNAL = true;
|
||||
// ENV.APP.LOG_VIEW_LOOKUPS = true;
|
||||
|
||||
ENV.APP.API_HOST = 'http://46.101.131.212:4200';
|
||||
|
||||
ENV['ember-cli-mirage'] = {
|
||||
enabled: true
|
||||
}
|
||||
|
@ -54,6 +58,8 @@ module.exports = function(environment) {
|
|||
}
|
||||
|
||||
if (environment === 'production') {
|
||||
ENV.APP.API_HOST = 'http://46.101.131.212:80';
|
||||
|
||||
ENV['ember-cli-mirage'] = {
|
||||
enabled: false
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue