fix: add trust proxy for express-rate-limit behind nginx

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
delta-lynx-89e8
2026-02-23 04:37:55 -08:00
parent dc07f2a98d
commit 167e5a9a8b

View File

@@ -38,6 +38,7 @@ const io = setupSocket(httpServer);
app.set('io', io);
// Middleware
app.set('trust proxy', 1);
app.use(helmet({ contentSecurityPolicy: false }));
app.use(cors({ origin: env.CLIENT_URL, credentials: true }));
app.use(cookieParser());