Ajustes del servidor

This commit is contained in:
David Arranz 2019-10-31 12:11:28 +01:00
parent 677dcd6ae5
commit f6aee2a00b
2 changed files with 8 additions and 2 deletions

View File

@ -47,7 +47,8 @@ app.use(helmet());
// enable CORS - Cross Origin Resource Sharing
app.use(cors({
exposedHeaders: ['Content-Disposition', 'Content-Type', 'Content-Length'],
exposedHeaders: ['Content-Disposition', 'Content-Type', 'Content-Length',
'X-Total-Count', 'Pagination-Count', 'Pagination-Page', 'Pagination-Limit'],
}));

View File

@ -23,7 +23,12 @@ const sequelize = new Sequelize(
config.database, {
dialect: 'mysql',
operatorAliases: false,
logging: false,
logging: config.debug,
pool: {
max: 140,
min: 0,
idle: 10000
}
}
);