-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig-template.js
56 lines (45 loc) · 1.82 KB
/
config-template.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
'use strict';
var getConfig = module.exports = function () {
return {
port: process.env.PORT || 8080,
// dataBackend can be 'datastore', 'cloudsql', or 'mongodb'. Be sure to
// configure the appropriate settings for each storage engine below.
// If you are unsure, use datastore as it requires no additional
// configuration.
dataBackend: process.env.BACKEND || 'mongodb',
// This is the id of your project in the Google Developers Console.
gcloud: {
projectId: process.env.GCLOUD_PROJECT || 'your-project-id'
},
mysql: {
user: process.env.MYSQL_USER || 'your-mysql-user',
password: process.env.MYSQL_PASSWORD || 'your-mysql-password',
host: process.env.MYSQL_HOST || 'your-mysql-host'
},
mongodb: {
url: process.env.MONGO_URL || 'mongodb://<USER>:<PASSWORD>@<DOMAIN>:<PORT>/<DIRECTORY>',
collection: process.env.MONGO_COLLECTION || 'processos'
},
'facebookAuth' : {
'clientID' : 'your-secret-clientID-here', // your App ID
'clientSecret' : 'your-client-secret-here', // your App Secret
'callbackURL' : 'http://localhost:8080/auth/facebook/callback'
},
'twitterAuth' : {
'consumerKey' : 'your-consumer-key-here',
'consumerSecret' : 'your-client-secret-here',
'callbackURL' : 'http://localhost:8080/auth/twitter/callback'
},
'googleAuth' : {
'clientID' : 'your-secret-clientID-here',
'clientSecret' : 'your-client-secret-here',
'callbackURL' : 'http://localhost:8080/auth/google/callback'
},
'linkedinAuth' : {
'consumerKey' : 'your-secret-clientID-here',
'consumerSecret' : 'your-client-secret-here',
'callbackURL' : 'http://localhost:8080/auth/linkedin/callback'
}
};
};
var config = getConfig();