Ajustes del servidor
This commit is contained in:
parent
677dcd6ae5
commit
f6aee2a00b
@ -47,7 +47,8 @@ app.use(helmet());
|
|||||||
|
|
||||||
// enable CORS - Cross Origin Resource Sharing
|
// enable CORS - Cross Origin Resource Sharing
|
||||||
app.use(cors({
|
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'],
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -23,7 +23,12 @@ const sequelize = new Sequelize(
|
|||||||
config.database, {
|
config.database, {
|
||||||
dialect: 'mysql',
|
dialect: 'mysql',
|
||||||
operatorAliases: false,
|
operatorAliases: false,
|
||||||
logging: false,
|
logging: config.debug,
|
||||||
|
pool: {
|
||||||
|
max: 140,
|
||||||
|
min: 0,
|
||||||
|
idle: 10000
|
||||||
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user