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
|
||||
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, {
|
||||
dialect: 'mysql',
|
||||
operatorAliases: false,
|
||||
logging: false,
|
||||
logging: config.debug,
|
||||
pool: {
|
||||
max: 140,
|
||||
min: 0,
|
||||
idle: 10000
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user