-
Notifications
You must be signed in to change notification settings - Fork 17
/
config.js
41 lines (38 loc) · 1.57 KB
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
const nconf = require('nconf');
const path = require('path');
const defaults = {
'http_port': 3000,
'application_id': 'patric3',
'p3_clientId': 'patric3',
'p3_clientSecret': 'patric3',
'appLabel': 'dev',
'newsFeedRSS': 'https://docs.patricbrc.org/news.rss',
'sessionTTL': 2628000000,
'workspaceServiceURL': 'https://p3.theseed.org/services/Workspace',
'appServiceURL': 'https://p3.theseed.org/services/app_service',
'homologyServiceURL': 'https://p3.theseed.org/services/homology_service',
'genomedistanceServiceURL': 'https://p3.theseed.org/services/minhash_service',
'compareregionServiceURL': 'https://p3.theseed.org/services/compare_regions',
'probModelSeedServiceURL': 'https://p3.theseed.org/services/ProbModelSEED', // only for status dashboard
'shockServiceURL': 'https://p3.theseed.org/services/shock_api', // only for status dashboard
dataServiceURL: 'https://p3.theseed.org/services/data_api',
accountURL: 'http://user.patric.local:3002/',
docsServiceURL: 'https://docs.patricbrc.org/',
userServiceURL: '',
localStorageCheckInterval: 86400,
enableDevTools: false,
reportProblemEmailAddress: '[email protected]',
'email': {
'localSendmail': false,
'defaultFrom': 'PATRIC <[email protected]>',
'defaultSender': 'PATRIC <[email protected]>',
'host': '',
'port': 587
},
proxy: {
'brcdownloads': 'http://brcdownloads.patricbrc.org'
}
};
const config_filename = 'p3-web.conf';
const config_file = path.join(__dirname, config_filename);
module.exports = nconf.argv().env().file(config_file).defaults(defaults);