Commit | Line | Data |
---|---|---|
c018b304 BA |
1 | const Parameters = |
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 BA |
9 | // Lifespan of a (login) cookie |
10 | cookieExpire: 183*24*3600*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, | |
15 | expire: 1000*60*30, //30 minutes in milliseconds | |
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 BA |
28 | }; |
29 | ||
30 | module.exports = Parameters; |