X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=server%2Fconfig%2Fparameters.js.dist;h=264fac50efadddad3cfd821c4d6f0a186911749f;hp=5b4301a65f8629329531cd5e86a19289a9d44765;hb=dac395887d96e2d642b209c6db6aaacc3ffacb34;hpb=5fde3a01497262862afc4cb4c9457d4e0ad69a4a diff --git a/server/config/parameters.js.dist b/server/config/parameters.js.dist index 5b4301a6..264fac50 100644 --- a/server/config/parameters.js.dist +++ b/server/config/parameters.js.dist @@ -1,34 +1,34 @@ module.exports = { - // For mail sending. NOTE: *no trailing slash* - siteURL: "http://localhost:8080", + // For mail sending. NOTE: *no trailing slash* + siteURL: "http://localhost:8080", - // To know in which environment the code run - env: process.env.NODE_ENV || 'development', - - // CORS: cross-origin resource sharing options - cors: { - enable: true, - allowedOrigin: "http://localhost:8080", - }, + // To know in which environment the code run + env: process.env.NODE_ENV || 'development', + + // CORS: cross-origin resource sharing options + cors: { + enable: true, + allowedOrigin: "http://localhost:8080", + }, - // Lifespan of a (login) cookie - cookieExpire: 183*24*60*60*1000, //6 months in milliseconds + // Lifespan of a (login) cookie + cookieExpire: 183*24*60*60*1000, //6 months in milliseconds - // Characters in a login token, and period of validity (in milliseconds) - token: { - length: 16, - expire: 30*60*1000, //30 minutes in milliseconds - }, + // Characters in a login token, and period of validity (in milliseconds) + token: { + length: 16, + expire: 30*60*1000, //30 minutes in milliseconds + }, - // 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", - }, + // 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", + }, };