Commit | Line | Data |
---|---|---|
ea8b41a9 | 1 | var Parameters = { }; |
e99c53fb | 2 | |
9addff25 | 3 | // For mail sending. WARNING: *no trailing slash* |
e99c53fb BA |
4 | Parameters.siteURL = "http://localhost"; |
5 | ||
6 | // Lifespan of a (login) cookie | |
7 | Parameters.cookieExpire = 183*24*3600*1000; //6 months in milliseconds | |
8 | ||
7473a608 | 9 | // Secret string used in monitoring page + review; avoid special URL chars '?' '&' '=' |
71d1ca9c BA |
10 | Parameters.secret = "ImNotSoSecretChangeMe"; |
11 | ||
e99c53fb BA |
12 | // Characters in a login token, and period of validity (in milliseconds) |
13 | Parameters.token = { | |
14 | length: 16, | |
15 | expire: 1000*60*30, //30 minutes in milliseconds | |
16 | }; | |
17 | ||
18 | // Whitelist of emails (full addresses or suffixes). Leave blank to accept all | |
19 | Parameters.whitelist = [ | |
20 | "some.email@some.domain.com", | |
21 | "another.domain.org", | |
22 | ]; | |
23 | ||
9addff25 | 24 | // msmtp account name and address from, to send (login) emails |
e99c53fb BA |
25 | Parameters.mail = { |
26 | account: "msmtpAccount", | |
27 | from: "addressFrom", | |
28 | }; | |
29 | ||
30 | // Database settings: see https://docs.mongodb.com/manual/reference/connection-string/ | |
31 | Parameters.db = { | |
32 | user: "username", | |
33 | password: "password", | |
34 | host: "localhost", | |
35 | port: "27017", | |
36 | name: "dbname", | |
37 | }; | |
38 | ||
39 | module.exports = Parameters; |