From 7a2e4a90cb5a9761c3e3fae8eae1515566bdf014 Mon Sep 17 00:00:00 2001 From: Evert Prants Date: Sun, 11 Sep 2022 11:58:15 +0300 Subject: [PATCH] trust proxy properly --- src/main.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 324eb13..042367e 100644 --- a/src/main.ts +++ b/src/main.ts @@ -40,7 +40,8 @@ async function bootstrap() { // Production servers have to be behind a proxy. if (process.env.NODE_ENV === 'production') { - app.set('trust proxy'); + app.set('trust proxy', 1); + app.disable('x-powered-by'); } app.use(