-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
38 lines (37 loc) · 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
require("dotenv").config({ silent: true });
module.exports = {
serveStaticData: false,
twitchCID: process.env.TWITCH_CLIENT_ID,
accessTOKEN: process.env.ACCESS_TOKEN,
port: parseInt(process.env.PORT) || 3000,
host: "https://localhost/",
logLevels: {
_default: "info",
file: "warn",
filePath: `${__dirname}/.logs`
},
validRoutes: {
streams: { q: ["user_id", "user_login"] },
users: { q: ["login", "id"] },
games: { q: ["id"] }
},
validLegacyRoutes: ["streams", "users", "channels"],
db: {
dbPath: `${__dirname}/.data/db`,
dataExpirationSecs: 5400,
enableCompaction: true,
compactionMillisecs: 2705000
},
outboundReqsLimiter: {
active: true,
checkIntervalMs: 15000,
maxOBReqsPerInterval: 55
},
blacklist: {
active: true,
urls: ["www.donotargue.com", "www.csulbesports.org", "https://www.photoshoptroll.com"],
ips: ["78.145.103.20", "107.178.192.90", "204.236.208.181"],
cooldown: 3000
},
baseApiUrl: "https://api.twitch.tv"
};