forked from teaDesign/VotingInfoApp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
58 lines (53 loc) · 1.44 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
/**
* Created by bantonides on 11/21/13.
*/
var config = {};
config.web = {
port: process.env.PORT || 4000,
favicon: 'public/assets/images/favicon.ico',
loglevel: 'dev',
sessionsecret: 'ssshh!!'
};
config.crowd = {
server: 'http://192.168.10.160:8095/crowd/',
application: 'votinginfoapp',
apppass: 'thisissecret',
retrieveGroups: true,
uselocalauth: true
};
config.ruleEngine = {
isPersistent: true //true if you want to save rule violations to mongo dB
}
/**
* vipModel contains data regarding db schema model values
* @type {{feed: string, election: string, source: string}}
*/
config.mongoose = {
model: {
ballot: 'ballots',
ballotLineResult: 'ballotLineResults',
ballotResponse: 'ballotResponses',
candidate: 'candidates',
contest: 'contests',
contestResult: 'contestResults',
customBallot: 'customBallots',
earlyVoteSite: 'earlyVoteSites',
election: 'elections',
electionAdministration: 'electionAdministrations',
electionOfficial: 'electionOfficials',
electoralDistrict: 'electoralDistricts',
feed: 'feeds',
locality: 'localitys',
pollingLocation: 'pollingLocations',
precinct: 'precincts',
precinctSplit: 'precinctSplits',
referendum: 'referendums',
source: 'sources',
state: 'states',
streetSegment: 'streetSegments',
violation: 'violations',
overview: 'overviews'
},
connectionString: 'mongodb://localhost/metis'
}
module.exports = config;