82ca2aec51142e30436e9e8310967ca2c2174501
[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 // Characters in a login token, and period of validity (in milliseconds)
10 Parameters.token = {
11 length: 16,
12 expire: 1000*60*30, //30 minutes in milliseconds
13 };
14
15 // Whitelist of emails (full addresses or suffixes). Leave blank to accept all
16 Parameters.whitelist = [
17 "some.email@some.domain.com",
18 "another.domain.org",
19 ];
20
21 // msmtp account name and address from, to send (login) emails
22 Parameters.mail = {
23 account: "msmtpAccount",
24 from: "addressFrom",
25 };
26
27 // Database settings: see https://docs.mongodb.com/manual/reference/connection-string/
28 Parameters.db = {
29 user: "username",
30 password: "password",
31 host: "localhost",
32 port: "27017",
33 name: "dbname",
34 };
35
36 module.exports = Parameters;