chore: change session config (#5289)

This commit is contained in:
Mir Arif Hasan 2025-07-29 15:02:57 +06:00 committed by GitHub
parent 7864baef11
commit f5aee59448
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -51,17 +51,10 @@ async function bootstrap() {
secret:
configService.get('INFRA.SESSION_SECRET') ||
crypto.randomBytes(16).toString('hex'),
resave: false,
saveUninitialized: false,
cookie: {
httpOnly: true,
secure: configService.get('INFRA.ALLOW_SECURE_COOKIES') === 'true',
sameSite: 'lax',
},
}),
);
// Increase fil upload limit to 50MB
// Increase file upload limit to 100MB
app.use(
json({
limit: '100mb',