-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.js
40 lines (35 loc) · 938 Bytes
/
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
module.exports = {
host_url: "http://localhost:6284", // mounted on this url
base: "/", // add a base url path. e.g: "/auth"
base_api: "/api", // api base path
port: 6284,
// bind: "127.0.0.1", // bind to an ip
debug: false, // add stack trace & infos in errors
/* uncomment to use ssl
ssl: {
key: '/path/to/key',
certificate: '/path/to/crt',
ca: '/path/to/ca'
},
*/
staticsalt: 'i m a random string, change me.',
publicsalt: 'i m another random string, change me.',
redis: {
port: 6379,
host: '127.0.0.1',
// password: '...my redis password...',
// database: ...0~15...
// options: {...other options...}
},
plugins: [
'server.statistics',
'server.admin.auth',
'server.request',
'server.admin'
]
}
if (require('fs').existsSync(__dirname + '/config.local.js')) {
var override = require('./config.local.js');
for (var i in override)
module.exports[i] = override[i];
}