-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.js.sample
47 lines (41 loc) · 1.09 KB
/
config.js.sample
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
var config = {};
config.port = 4000;
config.sessionSecret = 'not secret';
// Set to false if the server is not on the campus network
// This will disable AD authentication and LDAP name lookup
config.authenticationEnabled = true;
// Set to false to disable sending of emails
config.emailEnabled = true;
config.db = {
development: {
host: 'localhost',
database: 'attendance',
username: 'root',
password: null,
socketPath: null,
logging: console.log
},
production: {
host: 'localhost',
database: 'attendance',
username: 'root',
password: null,
socketPath: null,
logging: false
},
test: {
host: 'localhost',
database: 'attendance_test',
username: 'root',
password: null,
socketPath: null,
logging: false
},
};
// Session cookies generated when logging into my.cs.illinois.edu
// Used to fetch i-card photos
config.myCSCookie = {
aspSessionId: 'ASPSESSIONID*=value',
portalSession: 'PORTAL%5FSESSION=value'
};
module.exports = config;