-
Notifications
You must be signed in to change notification settings - Fork 12
/
config.js
102 lines (93 loc) · 2.06 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
const nconf = require('nconf')
const defaults = {
http_port: 3001,
collections: [
'antibiotics',
'enzyme_class_ref',
'epitope',
'epitope_assay',
'experiment',
'bioset',
'bioset_result',
'gene_ontology_ref',
'genome',
'strain',
'genome_test',
'genome_amr',
'feature_sequence',
'genome_feature',
'genome_sequence',
'host_resp',
'id_ref',
'misc_niaid_sgc',
'model_complex_role',
'model_compound',
'model_reaction',
'model_template_biomass',
'model_template_reaction',
'pathway',
'pathway_ref',
'ppi',
'pig',
'protein_family_ref',
'sequence_feature',
'sequence_feature_vt',
'sp_gene',
'sp_gene_ref',
'spike_lineage',
'spike_variant',
'structured_assertion',
'subsystem',
'subsystem_ref',
'taxonomy',
'protein_structure',
'protein_feature',
'surveillance',
'serology',
'proteomics_experiment',
'proteomics_peptide',
'proteomics_protein'
],
distributeURL: 'http://localhost:3001/',
publicURL: 'http://localhost:3001/',
jbrowseAPIRoot: 'http://localhost:3001/jbrowse',
treeDirectory: './trees',
contentDirectory: './content',
publicGenomeDir: '/genomes',
queueDirectory: './index-queue-dir',
signingSubjectURL: 'https://user.patricbrc.org/public_key',
solr: {
url: 'http://localhost:8983/solr',
agent: {
keepAlive: true,
maxSockets: 8,
maxFreeScokets: 0,
keepAliveMsecs: 1000
},
shortLiveAgent: {
keepAlive: true,
maxSockets: 4,
maxFreeScokets: 0,
keepAliveMsecs: 500
}
},
redis: {
host: '127.0.0.1',
port: 6379,
prefix: '',
db: 2,
pass: ''
},
shards: {
genome_feature: {
preference: 'replica.type:PULL,replica.type:TLOG'
},
pathway: {
preference: 'replica.type:PULL,replica.type:TLOG'
},
subsystem: {
preference: 'replica.type:PULL,replica.type:TLOG'
}
}
}
module.exports = nconf.argv().env().file(process.env.P3_API_CONFIG || './p3api.conf').defaults(defaults)