-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.js
executable file
·83 lines (76 loc) · 1.43 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/**
* Trivium Configuration.
*/
/**
* General Server Config
* @type {Object}
*/
exports.server = {
port: 11342, // Your HTTP Server Port for Routes.
domain: 'triviumjs.com', // Your Domain
root: __dirname, //Needed for System to run. Resolved Path issues.
secret: 'aspfnweovt234890pth9834hbt9w3', // Used for Sessions / Cookies
key: 'trivium', // Used for Cookies
session: 'mongo' //{mongo, mysql, memory, redis},
};
/**
* MongoDB
* Optional
* @type {Object}
*/
exports.mongo = {
db: 'trivium',
host: 'localhost',
port: 27017, // optional, default: 27017
options: {
},
name: 'Trivium'
};
/**
* Redis Config
* Optional
* @type {Object}
*/
exports.redis = {
port: '6379',
host: '127.0.0.1',
options: {}
};
/**
* mySQL Config
* Optional
* @type {Object}
*/
exports.mysql = {
host: 'localhost',
user: 'geilt',
password: 'blarg',
database: 'geilt'
};
/**
* Directory Configs
* Optional
* @type {Object}
*/
exports.directory = {
};
/**
* Oauth Credentials for Social Network Goodness.
* Optional
* @type {Object}
*/
exports.oauth = {
google: {
"web": {
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"client_secret": "",
"token_uri": "https://accounts.google.com/o/oauth2/token",
"client_email": "",
"redirect_uris": [""],
"client_x509_cert_url": "",
"client_id": "",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"javascript_origins": [""]
}
}
};