r3-config/config.js

157 lines
3.8 KiB
JavaScript

var environment = {
path : '/usr/share/cybafelo',
protocol : 'http',
environment : 'tj',
domain : 'cybafelo.local'
};
var protocol = environment.protocol;
var user = environment.environment;
var domain = environment.domain;
var config = {
vr_pong: {
<<<<<<< HEAD
url: "http://3d-pong.cybafelo.local"
},
vr_racer: {
url: "http://3d-racing.cybafelo.local"
},
editor: {
url: "http://3d-editor.cybafelo.local",
default: {
platform: 'cybafelo',
account: 'root',
subAccount: 'root'
},
uploadPath: '/uploads'
},
api16: {
url: "http://api-v1.6.cybafelo.local"
},
editor_v2: {
url: 'http://3d-editor-v2.cybafelo.local',
default: {
platform: 'cybafelo',
account: 'root',
subAccount: 'root',
nameOfTheGame: 'test'
},
uploadPath: '/uploads'
},
api_v2: {
url: 'http://api-v2.cybafelo.local',
uploadPath : '/uploads'
},
editor_v3: {
url: 'http://3d-editor-v3.cybafelo.local',
=======
url: protocol + '://' + user + '-3d-pong.' + domain
},
vr_racer: {
url: protocol + '://' + user + '-3d-racing.' + domain
},
editor: {
url: protocol + '://' + user + '-3d-editor.' + domain,
>>>>>>> 56f9a0e9c814bc05cdd17da606e11bf3f3485499
default: {
platform: 'cybafelo',
account: 'root',
subAccount: 'root',
nameOfTheGame: 'test'
}
},
<<<<<<< HEAD
api_v3: {
url: 'http://api-v3.cybafelo.local'
},
tools: {
url: "http://tools.cybafelo.local",
=======
api16: {
url: protocol + '://' + user + '-api-v1.' + domain,
remoteUrl: protocol + '://live-api-v1.flyingspoon.de',
uploadPath: '/uploads',
impactUrl : 'http://tj-api-v1.cybafelo.local/impact'
},
tools: {
url: protocol + '://' + user + '-tools.' + domain,
>>>>>>> 56f9a0e9c814bc05cdd17da606e11bf3f3485499
default: {
platform: 'cybafelo',
account: 'root',
subAccount: 'root'
}
},
app: {
<<<<<<< HEAD
url: 'http://app.cybafelo.local'
},
api: {
url: 'http://api.cybafelo.local'
},
api_runtime: {
url: 'http://api-runtime.cybafelo.local',
version: "1.0.0"
},
masker: {
url: 'http://masker.cybafelo.local'
},
statistics: {
url: 'http://api-runtime.cybafelo.local'
},
port: {
url: 'http://port.cybafelo.local'
},
gate: {
url: 'http://gate.cybafelo.local'
=======
url: protocol + '://' + user + '-app.' + domain
},
preview: {
url: protocol + '://' + user + '-preview.' + domain
},
api: {
url: protocol + '://' + user + '-api.' + domain
},
cdn: {
url: protocol + '://' + user + '-cdn.' + domain
},
gate: {
url: protocol + '://' + user + '-gate.' + domain
},
content: {
url: protocol + '://' + user + '-content.' + domain
},
asset: {
url: protocol + '://' + user + '-asset.' + domain
},
port: {
url: protocol + '://' + user + '-port.' + domain
},
cron: {
url: protocol + '://' + user + '-cron.' + domain
},
analytics: {
url: protocol + '://' + user + '-analytics.' + domain
>>>>>>> 56f9a0e9c814bc05cdd17da606e11bf3f3485499
},
environment: {
mode: 'development'
},
db: {}
};
if (typeof module !== 'undefined') {
if (typeof require !== 'undefined') {
var _ = require('lodash');
_.merge(config, require('./secure'));
_.merge(config, require('./connection'));
_.merge(config, require('./model'));
}
module.exports = config;
}