-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.default.js
39 lines (38 loc) · 1.29 KB
/
config.default.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
'use strict';
const config = {
limits: {
// Delay for up to 10 minutes (in ms)
window: 10 * 60 * 1000,
// how many uploads allowed before delays kick in
delayAfter: 3,
// time to delay request (in ms; is multiplied by number of req made in window)
delayLength: 1000,
},
storage: {
// 10MiB
maxSize: (1024*1024)*10,
// 30kiB
maxPasteSize: (1024)*30,
// where to save images (null = random /tmp path)
dir: null,
// where to save pastes (null = random /tmp path)
pasteDir: null,
// number of files to retain
fileLimit: 100,
// number of pastes to retain
pasteLimit: 2000,
},
web: {
// If defined (not undefined) will listen on a unix socket instead
// port and interface have no effect. comment out to disable this.
// if using systemd, you can define RuntimeDirectory=imageshare and use
// unix: `${process.env['RUNTIME_DIRECTORY']}/imageshare.socket`,
// unix: './imageshare.socket',
port: 5657,
interface: null, // leave as null to bind to all
// if server is behind something like nginx
// for forwarded for headers
reverseProxied: false,
},
};
module.exports = config;