X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=config%2Fparameters.js.dist;fp=config%2Fparameters.js.dist;h=bb3cbe2988a55f25649a02aacce7effb18eeaa9f;hp=944a6ee5ec552734da97ed2819c3d4496286cd8b;hb=c018b304ba439ca92348dcb65715707f5cfcee05;hpb=8a477a7e1b781babc74d7935b80ac0b18ec04f86 diff --git a/config/parameters.js.dist b/config/parameters.js.dist index 944a6ee5..bb3cbe29 100644 --- a/config/parameters.js.dist +++ b/config/parameters.js.dist @@ -1,25 +1,30 @@ -var Parameters = { }; +const Parameters = +{ + // For mail sending. NOTE: *no trailing slash* + siteURL: "http://localhost:3000", -// For mail sending. NOTE: *no trailing slash* -Parameters.siteURL = "http://localhost:3000"; + // To know in which environment the code run + env: process.env.NODE_ENV || 'development', -// Lifespan of a (login) cookie -Parameters.cookieExpire = 183*24*3600*1000; //6 months in milliseconds + // Lifespan of a (login) cookie + cookieExpire: 183*24*3600*1000, //6 months in milliseconds -// Characters in a login token, and period of validity (in milliseconds) -Parameters.token = { - length: 16, - expire: 1000*60*30, //30 minutes in milliseconds -}; + // Characters in a login token, and period of validity (in milliseconds) + token: { + length: 16, + expire: 1000*60*30, //30 minutes in milliseconds + }, -// Email settings -Parameters.mail = { - host: "mail_host_address", - port: 465, //if secure; otherwise use 587 - secure: true, //...or false - user: "mail_user_name", - pass: "mail_password", - contact: "some_contact_email", + // Email settings + mail: { + host: "mail_host_address", + port: 465, //if secure; otherwise use 587 + secure: true, //...or false + user: "mail_user_name", + pass: "mail_password", + noreply: "some_noreply_email", + contact: "some_contact_email", + }, }; module.exports = Parameters;