-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.js
More file actions
41 lines (31 loc) · 1023 Bytes
/
Copy pathconfig.js
File metadata and controls
41 lines (31 loc) · 1023 Bytes
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
const path = require('path');
const util = require('util');
const config = {
'database nedb proxies': path.join(__dirname, 'db/proxies.ne'),
'database nedb services': path.join(__dirname, 'db/services.ne'),
'database nedb autocompaction interval': 5 * 1000,
'database mongo url': 'mongodb://localhost:27017/proxymanager',
'proxy splitter': '\n',
'clean logger': (...args) => {
let timestamp = new Date();
return util.format('LOG', timestamp.toUTCString() + ':', ...args);
},
'logger': (...args) => {
console.log(config['clean logger'](...args));
},
'proxy modify response': (res) => {
return res;
},
'check url': 'http://www.rhymezone.com/',
'check interval': 60 * 1000,
'listen host': 'localhost',
'listen port': 3033,
'server host': 'localhost',
'server port': 3000,
'server logger mode': 'dev',
'paths static': path.join(__dirname, 'public'),
'paths views': path.join(__dirname, 'views'),
'session secret length': 512,
'session ttl': 14 * 24 * 60 * 60,
};
module.exports = config;