Skip to content

Commit

Permalink
remove rate limit
Browse files Browse the repository at this point in the history
  • Loading branch information
jsbroks committed Nov 14, 2024
1 parent 6c19eb6 commit 7196bd2
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 70 deletions.
1 change: 0 additions & 1 deletion apps/pty-proxy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"cors": "^2.8.5",
"dotenv": "^16.4.5",
"express": "^4.19.2",
"express-rate-limit": "^7.3.0",
"helmet": "^7.1.0",
"ms": "^2.1.3",
"next-auth": "catalog:",
Expand Down
11 changes: 0 additions & 11 deletions apps/pty-proxy/src/server.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import cookieParser from "cookie-parser";
import cors from "cors";
import express from "express";
import { rateLimit } from "express-rate-limit";
import helmet from "helmet";
import ms from "ms";

const app = express();

Expand All @@ -14,15 +12,6 @@ app.set("trust proxy", true);
app.use(cors({ credentials: true }));
app.use(helmet());

app.use(
rateLimit({
windowMs: ms("1h"),
limit: 100,
standardHeaders: "draft-7",
legacyHeaders: false,
}),
);

app.use(express.urlencoded({ extended: true }));
app.use(express.json());
app.use(cookieParser());
Expand Down
59 changes: 1 addition & 58 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7196bd2

Please sign in to comment.