allow <code class=...>, temporary MathJax fix, try to fix pre-filled inputs bug
[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
9// Characters in a login token, and period of validity (in milliseconds)
10Parameters.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
16Parameters.whitelist = [
17 "some.email@some.domain.com",
18 "another.domain.org",
19];
20
9addff25 21// msmtp account name and address from, to send (login) emails
e99c53fb
BA
22Parameters.mail = {
23 account: "msmtpAccount",
24 from: "addressFrom",
25};
26
27// Database settings: see https://docs.mongodb.com/manual/reference/connection-string/
28Parameters.db = {
29 user: "username",
30 password: "password",
31 host: "localhost",
32 port: "27017",
33 name: "dbname",
34};
35
36module.exports = Parameters;