r3-config/config.js

90 lines
2.2 KiB
JavaScript
Raw Normal View History

2017-05-09 17:27:31 +02:00
var environment = {
path : '/usr/share/cybafelo',
2017-05-10 15:56:03 +02:00
protocol : 'http',
2017-05-09 17:27:31 +02:00
environment : 'tj',
2018-03-06 09:28:55 +01:00
domain : 'cybafelo.local'
2017-05-09 17:27:31 +02:00
};
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: {
2017-05-09 17:27:31 +02:00
url: protocol + '://' + user + '-3d-pong.' + domain
2016-09-22 16:29:22 +02:00
},
2016-09-27 11:05:32 +02:00
vr_racer: {
2017-05-09 17:27:31 +02:00
url: protocol + '://' + user + '-3d-racing.' + domain
2016-09-22 16:29:22 +02:00
},
2016-09-27 11:05:32 +02:00
editor: {
2017-05-09 17:27:31 +02:00
url: protocol + '://' + user + '-3d-editor.' + domain,
2016-10-25 17:59:38 +02:00
default: {
2017-04-03 19:00:56 +02:00
platform: 'cybafelo',
2016-10-25 17:59:38 +02:00
account: 'root',
2017-02-23 17:46:50 +01:00
subAccount: 'root',
nameOfTheGame: 'test'
2017-05-16 19:41:59 +02:00
}
2016-09-26 16:15:21 +02:00
},
2017-01-24 12:55:37 +01:00
api16: {
2017-05-16 19:41:59 +02:00
url: protocol + '://' + user + '-api-v1.' + domain,
2017-10-02 12:02:07 +02:00
remoteUrl: protocol + '://live-api-v1.flyingspoon.de',
2018-03-06 09:28:55 +01:00
uploadPath: '/uploads',
impactUrl : 'http://tj-api-v1.cybafelo.local/impact'
2017-01-24 12:55:37 +01:00
},
2016-11-07 12:43:38 +01:00
tools: {
2017-05-09 17:27:31 +02:00
url: protocol + '://' + user + '-tools.' + domain,
2016-11-07 15:34:33 +01:00
default: {
2017-05-09 17:34:22 +02: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: {
2017-05-09 17:27:31 +02:00
url: protocol + '://' + user + '-app.' + domain
2016-11-08 12:34:17 +01:00
},
2017-12-11 13:58:25 +01:00
preview: {
url: protocol + '://' + user + '-preview.' + domain
},
2016-11-08 18:30:09 +01:00
api: {
2017-05-09 17:27:31 +02:00
url: protocol + '://' + user + '-api.' + domain
2016-11-08 12:34:17 +01:00
},
2017-03-20 14:39:22 +01:00
cdn: {
2017-05-09 17:27:31 +02:00
url: protocol + '://' + user + '-cdn.' + domain
2017-03-20 14:39:22 +01:00
},
gate: {
2017-05-09 17:27:31 +02:00
url: protocol + '://' + user + '-gate.' + domain
2017-03-20 14:39:22 +01:00
},
content: {
2017-05-09 17:27:31 +02:00
url: protocol + '://' + user + '-content.' + domain
2017-03-20 14:39:22 +01:00
},
asset: {
2017-05-09 17:27:31 +02:00
url: protocol + '://' + user + '-asset.' + domain
2017-03-20 14:39:22 +01:00
},
2016-11-08 18:30:09 +01:00
port: {
2017-05-09 17:27:31 +02:00
url: protocol + '://' + user + '-port.' + domain
2016-11-08 12:34:17 +01:00
},
2017-03-30 17:32:42 +02:00
cron: {
2017-05-09 17:27:31 +02:00
url: protocol + '://' + user + '-cron.' + domain
},
analytics: {
url: protocol + '://' + user + '-analytics.' + domain
2017-03-30 17:32:42 +02:00
},
environment: {
2017-01-24 17:44:43 +01:00
mode: 'development'
2017-05-09 17:34:22 +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');
2017-03-20 14:39:22 +01: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
}