bb3cbe2988a55f25649a02aacce7effb18eeaa9f
[vchess.git] / config / parameters.js.dist
1 const Parameters =
2 {
3 // For mail sending. NOTE: *no trailing slash*
4 siteURL: "http://localhost:3000",
5
6 // To know in which environment the code run
7 env: process.env.NODE_ENV || 'development',
8
9 // Lifespan of a (login) cookie
10 cookieExpire: 183*24*3600*1000, //6 months in milliseconds
11
12 // Characters in a login token, and period of validity (in milliseconds)
13 token: {
14 length: 16,
15 expire: 1000*60*30, //30 minutes in milliseconds
16 },
17
18 // Email settings
19 mail: {
20 host: "mail_host_address",
21 port: 465, //if secure; otherwise use 587
22 secure: true, //...or false
23 user: "mail_user_name",
24 pass: "mail_password",
25 noreply: "some_noreply_email",
26 contact: "some_contact_email",
27 },
28 };
29
30 module.exports = Parameters;