trust proxy properly
This commit is contained in:
parent
991bc68624
commit
7a2e4a90cb
@ -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(
|
||||
|
Reference in New Issue
Block a user