Separate client and server codes. Keep everything in one git repo for simplicity
[vchess.git] / server / config / parameters.js.dist
CommitLineData
fd08ab2c 1module.exports =
c018b304
BA
2{
3 // For mail sending. NOTE: *no trailing slash*
4 siteURL: "http://localhost:3000",
0bd5933d 5
c018b304
BA
6 // To know in which environment the code run
7 env: process.env.NODE_ENV || 'development',
0bd5933d 8
c018b304 9 // Lifespan of a (login) cookie
fd08ab2c 10 cookieExpire: 183*24*60*60*1000, //6 months in milliseconds
0bd5933d 11
c018b304
BA
12 // Characters in a login token, and period of validity (in milliseconds)
13 token: {
14 length: 16,
fd08ab2c 15 expire: 30*60*1000, //30 minutes in milliseconds
c018b304 16 },
0bd5933d 17
c018b304
BA
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 },
0bd5933d 28};