use sails recommended production settings

pull/55/head
villa7 2019-05-06 12:53:25 -04:00
parent 158e7ab162
commit c209b20345
1 changed files with 3 additions and 3 deletions

View File

@ -212,7 +212,7 @@ module.exports = {
* * * *
***************************************************************************/ ***************************************************************************/
cookie: { cookie: {
// secure: true, secure: true,
maxAge: 24 * 60 * 60 * 1000 // 24 hours maxAge: 24 * 60 * 60 * 1000 // 24 hours
} }
@ -288,7 +288,7 @@ module.exports = {
* (the "max-age" to include in the "Cache-Control" response header) * * (the "max-age" to include in the "Cache-Control" response header) *
* * * *
***************************************************************************/ ***************************************************************************/
cache: 365.25 * 24 * 60 * 60 * 1000 // One year cache: 365.25 * 24 * 60 * 60 * 1000, // One year
/*************************************************************************** /***************************************************************************
* * * *
@ -305,7 +305,7 @@ module.exports = {
* (https://sailsjs.com/config/http) * * (https://sailsjs.com/config/http) *
* * * *
***************************************************************************/ ***************************************************************************/
// trustProxy: true, trustProxy: true
}, },