-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathconfig.js
39 lines (39 loc) · 1.1 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
module.exports = {
server: {
port: 5000
},
autoUpdate: {
enabled: false,
packageJsonURL: "https://raw.githubusercontent.com/juliarn/PasteServer/master/package.json",
zipURL: "https://github.com/juliarn/PasteServer/archive/master.zip",
keepFiles: [],
devPackageJsonURL: "https://raw.githubusercontent.com/juliarn/PasteServer/development/package.json",
devZipUrl: "https://github.com/juliarn/PasteServer/archive/development.zip"
},
storage: {
type: "file",
host: "127.0.0.1",
port: 8529,
password: "",
// only arangodb
user: "root",
database: "pasteServer",
// only redis and arangodb
documentExpireInMs: 3 * 24 * 60 * 60 * 1000,
// only file
path: "data"
},
createRateLimit: {
timeInMs: 60 * 1000,
maxRequestsPerTime: 15
},
document: {
dataLimit: "2mb",
maxLength: 400000
},
keyGenerator: {
keyLength: 10,
keyChars: "abcdefghijklmnopqrstivwxyz0123456789",
withToUpperCase: true
},
};