| 1 | var Parameters = { }; |
| 2 | |
| 3 | // For mail sending. NOTE: *no trailing slash* |
| 4 | Parameters.siteURL = "http://localhost:3000"; |
| 5 | |
| 6 | // Lifespan of a (login) cookie |
| 7 | Parameters.cookieExpire = 183*24*3600*1000; //6 months in milliseconds |
| 8 | |
| 9 | // Characters in a login token, and period of validity (in milliseconds) |
| 10 | Parameters.token = { |
| 11 | length: 16, |
| 12 | expire: 1000*60*30, //30 minutes in milliseconds |
| 13 | }; |
| 14 | |
| 15 | // Email settings |
| 16 | Parameters.mail = { |
| 17 | host: "mail_host_address", |
| 18 | port: 465, //if secure; otherwise use 587 |
| 19 | secure: true, //...or false |
| 20 | user: "mail_user_name", |
| 21 | pass: "mail_password", |
| 22 | contact: "some_contact_email", |
| 23 | }; |
| 24 | |
| 25 | module.exports = Parameters; |