Commit | Line | Data |
---|---|---|
fd08ab2c | 1 | module.exports = |
c018b304 BA |
2 | { |
3 | // For mail sending. NOTE: *no trailing slash* | |
f05815d7 | 4 | siteURL: "http://localhost:8080", |
0bd5933d | 5 | |
c018b304 BA |
6 | // To know in which environment the code run |
7 | env: process.env.NODE_ENV || 'development', | |
98db2082 BA |
8 | |
9 | // CORS: cross-origin resource sharing options | |
10 | cors: { | |
b644ef7f | 11 | enable: true, |
1aeed627 | 12 | allowedOrigin: "http://localhost:8080", |
98db2082 | 13 | }, |
0bd5933d | 14 | |
c018b304 | 15 | // Lifespan of a (login) cookie |
fd08ab2c | 16 | cookieExpire: 183*24*60*60*1000, //6 months in milliseconds |
0bd5933d | 17 | |
c018b304 BA |
18 | // Characters in a login token, and period of validity (in milliseconds) |
19 | token: { | |
20 | length: 16, | |
fd08ab2c | 21 | expire: 30*60*1000, //30 minutes in milliseconds |
c018b304 | 22 | }, |
0bd5933d | 23 | |
c018b304 BA |
24 | // Email settings |
25 | mail: { | |
26 | host: "mail_host_address", | |
27 | port: 465, //if secure; otherwise use 587 | |
28 | secure: true, //...or false | |
29 | user: "mail_user_name", | |
30 | pass: "mail_password", | |
31 | noreply: "some_noreply_email", | |
32 | contact: "some_contact_email", | |
33 | }, | |
0bd5933d | 34 | }; |