-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.json
More file actions
92 lines (92 loc) · 2.36 KB
/
config.json
File metadata and controls
92 lines (92 loc) · 2.36 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
{
"system": {
"discord-webhook-report-channel": "YOUR_WEBHOOK",
"fastifyLogger": false,
"debug": true,
"loadBalancer": {
"enabled": false,
"mode": "round-robin"
}
},
"server": {
"tcpPort": 443,
"udpPort": 888,
"loginURL": "api.akk.bar",
"cachePath": "./cache",
"host": "127.0.0.1",
"https": {
"enabled": true,
"key": "src/cert/growtopia.key.pem",
"cert": "src/cert/growtopia.pem"
},
"information": {
"name": "GTPS",
"developer": "Akbarrdev",
"version": "1.0.0"
}
},
"security": {
"autoBlacklist": {
"enabled": true,
"blacklistPath": "blacklisted.json"
},
"whitelist": [
"127.0.0.1",
"::1"
],
"geo": {
"enabled": true,
"mode": "whitelist",
"whitelistCountry": [
"MY",
"PH",
"ID"
],
"blacklistCountry": [
"NG",
"VN",
"IN",
"RU",
"CN",
"BR"
]
},
"protectedPath": [
"/wp-login.php",
"/phpmyadmin"
],
"underAttack": {
"enabled": true,
"settings": {
"maxEventLoopDelay": 1000,
"maxHeapUsedBytes": 300000000,
"maxRssBytes": 200000000,
"maxEventLoopUtilization": 0.9,
"message": "sek cuy lg overloadd",
"retryAfter": 50
}
},
"rateLimiter": {
"enabled": true,
"limit": 100,
"per": "1 minute",
"cache": 10000,
"headers": {
"x-protected-by": "Akbarrdev Backend - 2024",
"x-ratelimit-limit": true,
"x-ratelimit-remaining": true,
"x-ratelimit-reset": true,
"retry-after": true
}
},
"payloadChecker": {
"enabled": true
},
"adaptiveRateLimit": {
"enabled": true,
"defaultLimit": 110,
"minInterval": 1000,
"cleanupInterval": 600000
}
}
}