add an advice for secret string
[qomet.git] / config / parameters.js.dist
CommitLineData
e99c53fb
BA
1var Parameters = {};
2
9addff25 3// For mail sending. WARNING: *no trailing slash*
e99c53fb
BA
4Parameters.siteURL = "http://localhost";
5
6// Lifespan of a (login) cookie
7Parameters.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
10Parameters.secret = "ImNotSoSecretChangeMe";
11
e99c53fb
BA
12// Characters in a login token, and period of validity (in milliseconds)
13Parameters.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
19Parameters.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
25Parameters.mail = {
26 account: "msmtpAccount",
27 from: "addressFrom",
28};
29
30// Database settings: see https://docs.mongodb.com/manual/reference/connection-string/
31Parameters.db = {
32 user: "username",
33 password: "password",
34 host: "localhost",
35 port: "27017",
36 name: "dbname",
37};
38
39module.exports = Parameters;