fixes rate limiter to work with HF load balancing

This commit is contained in:
nai-degen
2023-04-08 21:00:21 -05:00
committed by nai-degen
parent 5c585d1777
commit 51becc36b9
+2
View File
@@ -17,6 +17,8 @@ app.use(
express.json({ limit: "10mb" }),
express.urlencoded({ extended: true, limit: "10mb" })
);
// trust proxy to set x-forwarded-for ips correctly
app.set("trust proxy", true);
// routes
app.get("/", handleInfoPage);
app.use("/proxy", proxyRouter);