-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.sample.js
50 lines (50 loc) · 1.08 KB
/
config.sample.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
/*
* Sample configuration file for shrtn.js
*
* Copy/Rename to `config.js` and adapt for local configuration
* See README for documentation of parameters
*/
module.exports = {
http: {
address: '127.0.0.1',
port: 8080,
enableCORS: false,
CORS: {
allowOrigin: '*',
allowHeaders: 'X-Requested-With',
allowMethods: 'GET',
maxAge: 86400,
},
enableJSONP: false,
},
db: {
host: 'localhost',
port: 5432,
user: 'shrtn',
password: 'shrtn',
database: 'shrtn'
},
hash: {
urlPrefix: 'http://localhost:8080/',
length: 5,
caseSensitive: true,
decimals: true,
// or: range: 'abcABC123',
allowRequest: true,
requestPattern: /^[a-zA-Z0-9]{3,10}$/,
blacklist: []
},
urlLimit: {
hostnameWhitelist: [],
hostnameBlacklist: [],
allowedProtocols: ['http:', 'https:']
},
qrcode: {
enabled: true,
errorCorrectionLevel: 3, // = qrc.EC_H (H [highest] - Q - M - L [lowest])
defaultDotSize: 10, // 'bit' square size in px
minDotSize: 1,
maxDotSize: 40,
marginDots: 0
}
};