var environment = { path : '/usr/share/cybafelo', protocol : 'http', environment : 'tj', domain : 'cybafelo.com' }; var protocol = environment.protocol; var user = environment.environment; var domain = environment.domain; var config = { vr_pong: { url: protocol + '://' + user + '-3d-pong.' + domain }, vr_racer: { url: protocol + '://' + user + '-3d-racing.' + domain }, editor: { url: protocol + '://' + user + '-3d-editor.' + domain, default: { platform: 'cybafelo', account: 'root', subAccount: 'root', nameOfTheGame: 'test' } }, api16: { url: protocol + '://' + user + '-api-v1.' + domain, remoteUrl: protocol + '://live-api-v1.flyingspoon.de', uploadPath: '/uploads' }, tools: { url: protocol + '://' + user + '-tools.' + domain, default: { platform: 'cybafelo', account: 'root', subAccount: 'root' } }, app: { 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 }, 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; }