Skip to content

Commit 08a7beb

Browse files
committed
Set trust proxy to 1 to avoid rate limiter security warning
1 parent a943c87 commit 08a7beb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/src/server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ async function startServer() {
7171
const sessionStore = await createSessionStore();
7272
const sessionMiddleware = createSessionMiddleware(sessionStore);
7373

74-
// Trust proxy - required when behind reverse proxy (Traefik/nginx)
75-
app.set('trust proxy', true);
74+
// Trust proxy - trust only the first proxy (Traefik)
75+
app.set('trust proxy', 1);
7676

7777
app.use(helmetMiddleware);
7878
app.use(corsMiddleware);

0 commit comments

Comments
 (0)