Spaces:
Running
Running
Update app.js
Browse files
app.js
CHANGED
|
@@ -42,7 +42,7 @@ const burstLimiter = rateLimit({
|
|
| 42 |
// 2. Daily Limiter (Cost Control): Stops API bankruptcy
|
| 43 |
const dailyLimiter = rateLimit({
|
| 44 |
windowMs: 24 * 60 * 60 * 1000, // 24 hours
|
| 45 |
-
max:
|
| 46 |
message: {
|
| 47 |
success: false,
|
| 48 |
error: "Daily scan limit reached! 🛑 Check back tomorrow or follow us on socials for updates."
|
|
|
|
| 42 |
// 2. Daily Limiter (Cost Control): Stops API bankruptcy
|
| 43 |
const dailyLimiter = rateLimit({
|
| 44 |
windowMs: 24 * 60 * 60 * 1000, // 24 hours
|
| 45 |
+
max: 200, // Max 30 requests per DAY per IP (Adjust this number based on your budget)
|
| 46 |
message: {
|
| 47 |
success: false,
|
| 48 |
error: "Daily scan limit reached! 🛑 Check back tomorrow or follow us on socials for updates."
|