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