Basic monitoring OK (sockets non-functional atm)
[qomet.git] / config / parameters.js.dist
1 var Parameters = {};
2
3 // For mail sending. WARNING: *no trailing slash*
4 Parameters.siteURL = "http://localhost";
5
6 // Lifespan of a (login) cookie
7 Parameters.cookieExpire = 183*24*3600*1000; //6 months in milliseconds
8
9 // Secret string used in monitoring page + review
10 Parameters.secret = "ImNotSoSecretChangeMe";
11
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
24 // msmtp account name and address from, to send (login) emails
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;