var environment = { path : '/usr/share/r3-server', protocol : 'https', websocketProtocol : 'wss', websocketApp : 'beta.websocket', domain : 'r3js.org', remoteDomain : 'flyingspoon.de' }; var protocol = environment.protocol; var domain = environment.domain; var remoteDomain = environment.remoteDomain; var websocketProtocol = environment.websocketProtocol; var websocketApp = environment.websocketApp; var config = { editor: { url: protocol + '://beta.editor.' + domain, default: { platform: 'r3js', project: 'Project X' } }, api: { url: protocol + '://beta.api.' + domain, remoteUrl: protocol + '://beta.api.' + remoteDomain, uploadPath: '/uploads', clientPassword: '"kent sent me" motherfucker!' }, websocket: { protocol : websocketProtocol, domain : domain, application: websocketApp, host : websocketApp + '.' + domain, url : websocketProtocol + '://' + websocketApp + '.' + domain }, portal: { url: protocol + '://beta.portal.' + domain }, db: {}, environment : environment }; if (typeof module !== 'undefined') { if (typeof require !== 'undefined') { var _ = require('lodash'); _.merge(config, require('./secure')); } module.exports = config; }