forked from AKSW/context
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.js
More file actions
54 lines (44 loc) · 1.26 KB
/
config.js
File metadata and controls
54 lines (44 loc) · 1.26 KB
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
// if debug is enabled
exports.debug = false;
// cookies stuff
exports.sidSalt = 'initMe';
exports.cookieParserSalt = 'initMeToo';
exports.cookieSecret = 'andMeToo';
// password salt
exports.passwordSalt = 'ThisIsPasswordSalt';
// default app port
exports.defaultPort = 8080;
// default websockets port
exports.defaultSocketPort = 8081;
exports.useSockets = true;
// default app uri (needed for websocket server)
exports.defaultHost = 'localhost';
// default db
exports.db = 'mongodb://localhost/context';
// session config
exports.sessionDb = {
url: exports.db
};
// facebook app config
exports.facebook = {
clientID: 'FACEBOOK_APP_ID',
clientSecret: 'FACEBOOK_APP_SECRET',
callbackURL: 'http://localhost:8080/auth/facebook/callback',
};
// google app config
exports.google = {
returnURL: 'http://localhost:8080/auth/google/return',
realm: 'http://localhost:8080/'
};
// twitter app config
exports.twitter = {
consumerKey: 'TWITTER_CONSUMER_KEY',
consumerSecret: 'TWITTER_CONSUMER_SECRET',
callbackURL: 'http://localhost:8080/auth/twitter/callback'
};
// linkedin app config
exports.linkedin = {
consumerKey: 'LINKEDIN_API_KEY',
consumerSecret: 'LINKEDIN_SECRET_KEY',
callbackURL: 'http://localhost:8080/auth/linkedin/callback'
};