From 004e93aeaf228ca5246be3b52d3b5ba81350d292 Mon Sep 17 00:00:00 2001 From: Type-Style Date: Mon, 2 Sep 2024 10:22:45 +0200 Subject: [PATCH] [Change] #123, to see real user ip instead of localhost proxy --- src/app.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app.ts b/src/app.ts index 0759304..20bc2df 100644 --- a/src/app.ts +++ b/src/app.ts @@ -53,6 +53,7 @@ app.use((req, res, next) => { // limit body for specific http methods next(); }); +app.set('trust proxy',true); // routes app.get(['/', '/login'], (req, res) => {