Files
Cédric FAMIBELLE-PRONZOLA e0474136cc Configure rest cache
2022-05-20 15:40:43 +04:00

39 lines
767 B
JavaScript

module.exports = ({env}) => ({
email: {
config: {
provider: 'nodemailer',
providerOptions: {
host: env('SMTP_HOST', 'smtp.example.com'),
port: env('SMTP_PORT', 587),
auth: {
user: env('SMTP_USERNAME'),
pass: env('SMTP_PASSWORD'),
}
}
},
settings: {
defaultFrom: env('SMTP_FROM'),
defaultReplyTo: env('SMTP_REPLY_TO'),
},
},
'rest-cache': {
config: {
provider: {
name: 'memory',
options: {
max: 32767,
maxAge: 3600
}
},
strategy: {
contentTypes: [
'api::artiste.artiste',
'api::parole.parole'
],
debug: true,
hitpass: false
}
}
},
})