r3-config/build/config.js

54 lines
1.4 KiB
JavaScript
Raw Normal View History

2017-05-09 17:27:31 +02:00
var environment = {
2020-01-31 10:55:05 +01:00
path : '/usr/share/r3-server',
2018-05-14 10:20:12 +02:00
protocol : 'https',
2018-11-18 10:36:48 +01:00
websocketProtocol : 'wss',
2020-01-31 10:55:05 +01:00
websocketApp : 'beta.websocket',
domain : 'r3js.org',
remoteDomain : 'flyingspoon.de'
2017-05-09 17:27:31 +02:00
};
2018-11-18 10:36:48 +01:00
var protocol = environment.protocol;
var domain = environment.domain;
var remoteDomain = environment.remoteDomain;
var websocketProtocol = environment.websocketProtocol;
2020-01-18 13:28:50 +01:00
var websocketApp = environment.websocketApp;
2017-05-09 17:27:31 +02:00
2016-09-22 16:29:22 +02:00
var config = {
2016-09-27 11:05:32 +02:00
editor: {
2020-01-31 10:55:05 +01:00
url: protocol + '://beta.editor.' + domain,
2016-10-25 17:59:38 +02:00
default: {
2020-01-31 10:55:05 +01:00
platform: 'r3js',
2020-01-18 13:28:50 +01:00
project: 'Project X'
2016-11-07 12:43:38 +01:00
}
},
2016-11-08 18:30:09 +01:00
api: {
2020-01-31 10:55:05 +01:00
url: protocol + '://beta.api.' + domain,
remoteUrl: protocol + '://beta.api.' + remoteDomain,
2018-04-12 10:58:35 +02:00
uploadPath: '/uploads',
clientPassword: '"kent sent me" motherfucker!'
2017-03-30 17:32:42 +02:00
},
2018-11-18 10:36:48 +01:00
websocket: {
protocol : websocketProtocol,
domain : domain,
application: websocketApp,
2019-06-11 21:02:02 +02:00
host : websocketApp + '.' + domain,
url : websocketProtocol + '://' + websocketApp + '.' + domain
2018-11-18 10:36:48 +01:00
},
2018-04-12 10:58:35 +02:00
portal: {
2020-01-31 10:55:05 +01:00
url: protocol + '://beta.portal.' + domain
2017-05-09 17:34:22 +02:00
},
2018-04-20 09:57:39 +02:00
db: {},
environment : environment
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'));
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
}