-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.js
More file actions
28 lines (24 loc) · 958 Bytes
/
Copy pathconfig.js
File metadata and controls
28 lines (24 loc) · 958 Bytes
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
function Config() {
this.port = '9090';
this.hostname = 'udaanticketee.herokuapp.com';
const dbuser = {
name: 'udaanroot',
pass: 'udaan001'
}
this.dbUrl = `mongodb://${dbuser.name}:${dbuser.pass}@ds131973.mlab.com:31973/udaan`;
this.auth = {
'facebookAuth' : {
'clientID': '167809944151321', // App ID
'clientSecret': '6a8d09ad07ca953be9381f9cea36aee0', // your App Secret
'callbackURL': `https://${this.hostname}/auth/facebook/callback`,
'profileURL': 'https://graph.facebook.com/v2.11/me?fields=first_name,last_name,email',
'profileFields': ['id', 'email', 'name'] // For requesting permissions from Facebook API
},
'twitterAuth' : {
'consumerKey': 'hvukSLuOWPQBgVEkG5gAuUnrK',
'consumerSecret': 'HjswoYpktiqk98anyHSuacqW3YtLyWlFV2KGOhooggopHQz9WI',
'callbackURL': `http://${this.hostname}/auth/twitter/callback`
}
}
}
module.exports = new Config();