-
Notifications
You must be signed in to change notification settings - Fork 0
/
default-config.js
41 lines (38 loc) · 998 Bytes
/
default-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
36
37
38
39
40
41
var crypto = require('crypto');
var path = require('path');
var nodeplayerConfig = require('nodeplayer').config;
var defaultConfig = {};
defaultConfig.sessionStore = path.join(nodeplayerConfig.getBaseDir(), 'sessions');
defaultConfig.sessionTtl = 24 * 60 * 60; // one day
defaultConfig.secret = crypto.randomBytes(20).toString('hex');
defaultConfig.users = [
{
// keyboard cat
hashedPassword: 'sha1$9b174107$1$321fe4590c39d4ae5dbdc0a42e0b4471b59176c0',
userName: 'changeMe'
}
];
defaultConfig.protectedPaths = {
express: [
'/song',
'/search',
'/queue',
'/queue/add',
'/queue/del',
'/queue/move',
'/playctl',
'/volume'
],
socketio: [
'addToQueue',
'removeFromQueue',
'moveInQueue',
'searchBackends',
'startPlayback',
'pausePlayback',
'skipSongs',
'shuffleQueue',
'setVolume'
]
};
module.exports = defaultConfig;