Repository navigation
Expand file tree
/
Copy pathdefaultSettings.json
More file actions
138 lines (138 loc) · 3.39 KB
/
Copy pathdefaultSettings.json
File metadata and controls
138 lines (138 loc) · 3.39 KB
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
{
"serverAddr": "127.0.0.1",
"serverPort": 8080,
"showBuild": true,
"audit": {
"logDebug": false,
"logFilename": "",
"timeFormat": "Monday Jan 2 15:04:05"
},
"auth": {
"tarpitDelay": "2s",
"basic": {
"field": "X-Auth",
"token": ""
},
"require": {
"assets": false,
"clear": true,
"download": true,
"list": false,
"msg": false,
"msgAdd": false,
"msgClear": false,
"msgDelete": false,
"msgGet": false,
"random": false,
"remask": true,
"root": false,
"static": false,
"status": false,
"upload": true,
"userInfo": false,
"wall": false
}
},
"default": {
"downloads": 1,
"duration": "5m"
},
"error": {
"copy": "file copy fail",
"deny": "not authorized",
"fileSize": "file too large",
"fileSizeAll": "size limit met",
"form": "file form fail",
"msgCount": "msgs count met",
"msgEmpty": "msg text empty",
"msgLength": "msg length met",
"msgNotFound": "msg not stored",
"noFilename": "need file name",
"noFiles": "no files found",
"noPath": "path not found",
"notFound": "file not found",
"rateLimit": "req rate limit",
"tmplExec": "failed to exec",
"tmplParse": "failed parsing",
"uploadCount": "too many files",
"wallLimit": "too many chars"
},
"indexPage": {
"csp": true,
"linkVT": true,
"title": "gone",
"cookie": {
"id": "goneTheme",
"time": "192h"
},
"placeholder": {
"auth": "enter secret token",
"file": "enter file name/id",
"message": "enter text message"
},
"style": {
"allowPick": true,
"theme": "auto",
"available": [
"light", "gold", "lime", "sky", "purple",
"cabana", "mango", "lush", "beach", "pink",
"gray", "ember", "green", "reef", "rose",
"dark", "tidal", "canopy", "teal", "plum",
"night", "dusk", "lagoon", "navy", "neon"
]
}
},
"limit": {
"reqsPerMinute": 30,
"fileLimits": {
"expiryCheck": "30s",
"maxDownloads": 100,
"maxDuration": "192h",
"maxSelectFiles": 10,
"nameExtraChars": "_.- ",
"nameLength": 64,
"sizeEachMb": 512,
"sizeTotalMb": 4096
},
"messageLimits": {
"maxCount": 32,
"lengthChars": 128
},
"randomLimits": {
"strCount": 16
},
"wallLimits": {
"lengthChars": 4096
}
},
"paths": {
"assets": "/assets/",
"clear": "/clear",
"download": "/download/",
"list": "/list",
"msg": "/msg",
"msgAdd": "/msg/add",
"msgClear": "/msg/clear",
"msgDelete": "/msg/delete/{count}",
"msgGet": "/msg/{count}",
"random": "/random/",
"root": "/",
"static": "/static",
"status": "/status",
"upload": "/upload",
"userInfo": "/user/info",
"userRemask": "/user/remask",
"wallModify": "/wall"
},
"timeouts": {
"idle": "90s",
"read": "20s",
"readHeader": "20s",
"write": "20s",
"shutdown": "10s"
},
"tls": {
"fileCert": "",
"fileKey": ""
}
}