Some Chakart fixes/adjustments
[vchess.git] / server / config / parameters.js.dist
CommitLineData
0234201f 1module.exports = {
937c24ab 2
dac39588
BA
3 // For mail sending. NOTE: *no trailing slash*
4 siteURL: "http://localhost:8080",
0bd5933d 5
dac39588
BA
6 // To know in which environment the code run
7 env: process.env.NODE_ENV || 'development',
0aa79c55 8
dac39588
BA
9 // CORS: cross-origin resource sharing options
10 cors: {
11 enable: true,
12 allowedOrigin: "http://localhost:8080",
13 },
0bd5933d 14
dac39588
BA
15 // Lifespan of a (login) cookie
16 cookieExpire: 183*24*60*60*1000, //6 months in milliseconds
0bd5933d 17
dac39588
BA
18 // Characters in a login token, and period of validity (in milliseconds)
19 token: {
20 length: 16,
21 expire: 30*60*1000, //30 minutes in milliseconds
22 },
0bd5933d 23
0aa79c55
BA
24 // Path to tournament repository (to synchronize DBs)
25 tourneyPath: "/path/to/folder",
26
dac39588
BA
27 // Email settings
28 mail: {
29 host: "mail_host_address",
30 port: 465, //if secure; otherwise use 587
31 secure: true, //...or false
32 user: "mail_user_name",
33 pass: "mail_password",
34 noreply: "some_noreply_email",
35 contact: "some_contact_email",
36 },
a9e79351
BA
37
38 // IDs of users allowed to post news and edit any problem
39 devs: []
937c24ab 40
0bd5933d 41};