retrieve resolver host from request instead of static value

This commit is contained in:
TheBeastLT
2023-10-31 11:23:30 +02:00
parent cf1ab4212d
commit 9990acf36e
6 changed files with 47 additions and 36 deletions

View File

@@ -5,6 +5,7 @@ const serverless = require('./serverless');
const { initBestTrackers } = require('./lib/magnetHelper');
const app = express();
app.enable('trust proxy');
const limiter = rateLimit({
windowMs: 60 * 60 * 1000, // 1 hours
max: 300, // limit each IP to 300 requests per windowMs