-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbackend-config.yml
62 lines (45 loc) · 1.71 KB
/
backend-config.yml
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
####################
## Email Settings ##
####################
# Suffix of the email IDs for the usernames contained in `students` collection in the database
# Leave empty if `email` value itself contains the full email address
MailSuffix: "@iitk.ac.in"
#######################
## Database Settings ##
#######################
# MongoDB URL
MongoDialURL: "mongo:27017"
# Name of the database in which the collections are stored
MongoDbName: ElectionDB
# Username of the Database Admin
MongoUsername: ElectionAdmin
# Password of the Database Admin
MongoPassword: password
# Whether username/password is required to connect to mongo
MongoUsingAuth: false
########################
## Paths to Resources ##
########################
# Location of the folder where ballot Ids are to be stored
BallotIDsPath: /oem/resources/ballots
# YML file that contains the details of posts and candidates
ElectionDataFilePath: /oem/resources/electionData.yml
# Location of the folder where the generated candidates file is present
CandidatesOutputPath: /oem/resources/data
# Location where lists of voters for each post are present in PostId.txt format
VotersListPath: /oem/resources/voters
##########################
## Application Settings ##
##########################
# The state of elections when the server is started.
# Should be one of {VotingNotYetStarted, AcceptingVotes, VotingStopped, ResultsCalculated}
ElectionState: VotingNotYetStarted
#ElectionState: AcceptingVotes
#ElectionState: VotingStopped
#ElectionState: ResultsCalculated
# Whether Captcha check required
UsingCaptcha: true
# Roll number of the CEO, as present in the `students` collection
RollNumberOfCEO: 180561
# Port on which the application should run
ApplicationPort: ":4000"