-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathconfig.js
52 lines (42 loc) · 1.11 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/**
* Handle loading configuration information from a local json file and suggest some default values
*/
var _ = require('underscore');
var local = require('./config.json');
var defaults = {
// Express settings and options
set : {'env' : 'development'},
enable : ['trust proxy'],
// Project directory and URL organization
filter_dir : 'filters',
static_dir : 'static',
route_dir : 'routes',
template_dir : 'templates',
static_path : '/static',
client_path : '/ui.js',
client_prefix : 'c-',
both_prefix : 'cs-',
// Server config settings
port : 8124,
base_url : 'http://localhost:8124',
session_secret : 'thisisasecret',
// MySQL settings
mysql : {
host : '127.0.0.1',
user : 'ld2l',
database : 'ld2l',
password : 'ld2l',
charset : "utf8_general_ci",
},
// Steam and Dota settings
steam_api_key : '',
// @todo add dota options here, likely a steam name/pw
// Discord application settings
discord_client_id : '',
discord_client_secret : '',
discord_news_webhook : '',
// KBaaS settings
kbaas_url : 'http://api.kaedebot.com',
kbaas_key : ''
};
module.exports = _.extend({}, defaults, local);