-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
33 lines (33 loc) · 1.06 KB
/
config.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
module.exports = {
authToken: process.env.AUTH_TOKEN || 'secret',
env: process.env.NODE_ENV,
flickr: {
key: process.env.FLICKR_KEY || '123abc',
secret: process.env.FLICKR_SECRET || 'secret',
userId: process.env.FLICKR_USER_ID || 'user'
},
host: process.env.HOST || 'localhost',
github: {
apiUrl: 'https://api.github.com',
username: process.env.GITHUB_USERNAME || 'username',
accessToken: process.env.GITHUB_ACCESS_TOKEN || '123abc'
},
google: {
apiKey: process.env.GOOGLE_API_KEY || '123abc',
nearbySearchApiUrl: 'https://maps.googleapis.com/maps/api/place/nearbysearch/json'
},
foursquare: {
token: process.env.FOURSQUARE_TOKEN || 'token'
},
jobs: {
frequency: {
githubActivity: process.env.JOBS_FREQUENCY_GITHUB || '00 */1 * * * *',
swarmPlaces: process.env.JOBS_FREQUENCY_SWARM || '00 */1 * * * *',
updateCache: process.env.JOBS_FREQUENCY_CACHE || '00 */1 * * * *'
}
},
mongo: {
url: process.env.MONGO_URL || 'mongodb://localhost:27017/FranVarney'
},
port: process.env.PORT || 8000
}