Step toward a one-page application
[vchess.git] / server / config / parameters.js.dist
1 module.exports =
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*60*60*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: 30*60*1000, //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 };