Show mode instead of coefficient on course page
[qomet.git] / config / parameters.js.dist
... / ...
CommitLineData
1var Parameters = {};
2
3// For mail sending. WARNING: *no trailng slash*
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
21// msmtp account name adn address from, to send (login) emails
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;