trust proxy properly

This commit is contained in:
Evert Prants 2022-09-11 11:58:15 +03:00
parent 991bc68624
commit 7a2e4a90cb
Signed by: evert
GPG Key ID: 1688DA83D222D0B5

View File

@ -40,7 +40,8 @@ async function bootstrap() {
// Production servers have to be behind a proxy. // Production servers have to be behind a proxy.
if (process.env.NODE_ENV === 'production') { if (process.env.NODE_ENV === 'production') {
app.set('trust proxy'); app.set('trust proxy', 1);
app.disable('x-powered-by');
} }
app.use( app.use(