-
Notifications
You must be signed in to change notification settings - Fork 53
/
config.js
35 lines (35 loc) · 1.05 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
34
35
module.exports = {
app: {
name: 'soundtrack'
, safe: process.env.SOUNDTRACK_APP_SAFE || false
, host: process.env.SOUNDTRACK_APP_HOST || 'soundtrack.io'
, port: process.env.SOUNDTRACK_APP_PORT || 13000
},
database: {
name: process.env.SOUNDTRACK_DB_NAME || 'soundtrack'
, hosts: ['localhost']
},
redis: {
host: process.env.SOUNDTRACK_REDIS_HOST || 'localhost'
, port: process.env.SOUNDTRACK_REDIS_PORT || 6379
},
sessions: {
key: 'put yourself a fancy little key here'
},
connection: {
clientTimeout: 2 * 60 * 1000
, checkInterval: 30 * 1000
},
lastfm: {
key: process.env.SOUNDTRACK_LASTFM_KEY || 'key here'
, secret: process.env.SOUNDTRACK_LASTFM_SECRET || 'secret here'
},
soundcloud: {
id: process.env.SOUNDTRACK_SOUNDCLOUD_ID || 'id here'
, secret: process.env.SOUNDTRACK_SOUNDCLOUD_SECRET || 'secret here'
},
spotify: {
id: process.env.SOUNDTRACK_SPOTIFY_ID || 'id here',
secret: process.env.SOUNDTRACK_SPOTIFY_SECRET || 'secret here'
}
}