r3-config/config.js

157 lines
3.8 KiB
JavaScript
Raw Normal View History

2018-04-04 12:30:30 +02:00
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;
2016-09-22 16:29:22 +02:00
var config = {
2016-09-27 11:05:32 +02:00
vr_pong: {
2018-04-04 12:30:30 +02:00
<<<<<<< HEAD
2017-02-09 00:31:56 +01:00
url: "http://3d-pong.cybafelo.local"
2016-09-22 16:29:22 +02:00
},
2016-09-27 11:05:32 +02:00
vr_racer: {
2017-02-09 00:31:56 +01:00
url: "http://3d-racing.cybafelo.local"
2016-09-22 16:29:22 +02:00
},
2016-09-27 11:05:32 +02:00
editor: {
2016-09-29 05:14:05 +02:00
url: "http://3d-editor.cybafelo.local",
2016-10-25 17:59:38 +02:00
default: {
2017-02-09 00:50:43 +01:00
platform: 'cybafelo',
2016-10-25 17:59:38 +02:00
account: 'root',
subAccount: 'root'
2017-02-14 02:10:32 +01:00
},
uploadPath: '/uploads'
2016-09-26 16:15:21 +02:00
},
2017-01-24 12:55:37 +01:00
api16: {
2017-02-09 00:31:56 +01:00
url: "http://api-v1.6.cybafelo.local"
2017-01-24 12:55:37 +01:00
},
editor_v2: {
2017-02-09 00:31:56 +01:00
url: 'http://3d-editor-v2.cybafelo.local',
2016-10-25 17:59:38 +02:00
default: {
2017-02-09 00:50:43 +01:00
platform: 'cybafelo',
2016-10-25 17:59:38 +02:00
account: 'root',
2017-01-20 15:30:13 +01:00
subAccount: 'root',
nameOfTheGame: 'test'
2016-10-25 17:59:38 +02:00
},
2016-11-07 12:43:38 +01:00
uploadPath: '/uploads'
2016-09-26 16:15:21 +02:00
},
2017-01-24 12:55:37 +01:00
api_v2: {
2017-02-09 00:31:56 +01:00
url: 'http://api-v2.cybafelo.local',
2017-02-03 17:13:15 +01:00
uploadPath : '/uploads'
2017-01-24 17:44:43 +01:00
},
editor_v3: {
2017-02-09 00:31:56 +01:00
url: 'http://3d-editor-v3.cybafelo.local',
2018-04-04 12:30:30 +02:00
=======
url: protocol + '://' + user + '-3d-pong.' + domain
},
vr_racer: {
url: protocol + '://' + user + '-3d-racing.' + domain
},
editor: {
url: protocol + '://' + user + '-3d-editor.' + domain,
>>>>>>> 56f9a0e9c814bc05cdd17da606e11bf3f3485499
2017-01-24 17:44:43 +01:00
default: {
2017-02-09 00:50:43 +01:00
platform: 'cybafelo',
2017-01-24 17:44:43 +01:00
account: 'root',
subAccount: 'root',
nameOfTheGame: 'test'
2018-04-04 12:30:30 +02:00
}
2017-01-24 17:44:43 +01:00
},
2018-04-04 12:30:30 +02:00
<<<<<<< HEAD
2017-01-24 17:44:43 +01:00
api_v3: {
2017-02-09 00:31:56 +01:00
url: 'http://api-v3.cybafelo.local'
},
2016-11-07 12:43:38 +01:00
tools: {
2016-11-18 17:54:53 +01:00
url: "http://tools.cybafelo.local",
2018-04-04 12:30:30 +02:00
=======
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
2016-11-07 15:34:33 +01:00
default: {
2017-02-09 00:50:43 +01:00
platform: 'cybafelo',
2016-11-07 15:34:33 +01:00
account: 'root',
subAccount: 'root'
2016-11-07 12:43:38 +01:00
}
},
2016-11-08 18:30:09 +01:00
app: {
2018-04-04 12:30:30 +02:00
<<<<<<< HEAD
2016-11-18 17:54:53 +01:00
url: 'http://app.cybafelo.local'
2016-11-08 12:34:17 +01:00
},
2016-11-08 18:30:09 +01:00
api: {
2016-11-18 17:54:53 +01:00
url: 'http://api.cybafelo.local'
2016-11-08 12:34:17 +01:00
},
2016-11-08 18:30:09 +01:00
api_runtime: {
2016-11-18 17:54:53 +01:00
url: 'http://api-runtime.cybafelo.local',
2016-11-08 18:30:09 +01:00
version: "1.0.0"
2016-11-08 12:34:17 +01:00
},
2016-11-08 18:30:09 +01:00
masker: {
2016-11-18 17:54:53 +01:00
url: 'http://masker.cybafelo.local'
2016-11-08 12:34:17 +01:00
},
2016-11-08 18:30:09 +01:00
statistics: {
2016-11-18 17:54:53 +01:00
url: 'http://api-runtime.cybafelo.local'
2016-11-08 18:30:09 +01:00
},
port: {
2016-11-18 17:54:53 +01:00
url: 'http://port.cybafelo.local'
2016-11-08 12:34:17 +01:00
},
2016-11-08 18:30:09 +01:00
gate: {
2016-11-18 17:54:53 +01:00
url: 'http://gate.cybafelo.local'
2018-04-04 12:30:30 +02:00
=======
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
2016-11-08 12:34:17 +01:00
},
environment: {
2016-11-07 12:43:38 +01:00
mode: 'development'
2018-04-04 12:30:30 +02:00
},
db: {}
2016-04-26 18:10:25 +02:00
};
2016-04-26 18:52:58 +02:00
if (typeof module !== 'undefined') {
2016-11-08 12:34:17 +01:00
if (typeof require !== 'undefined') {
var _ = require('lodash');
2018-04-04 12:30:30 +02:00
_.merge(config, require('./secure'));
_.merge(config, require('./connection'));
_.merge(config, require('./model'));
2016-11-08 12:34:17 +01:00
}
2016-09-22 16:29:22 +02:00
module.exports = config;
2016-04-26 18:52:58 +02:00
}