Roughly completed Users logic; untested
[vchess.git] / config / parameters.js.dist
diff --git a/config/parameters.js.dist b/config/parameters.js.dist
new file mode 100644 (file)
index 0000000..944a6ee
--- /dev/null
@@ -0,0 +1,25 @@
+var Parameters = { };
+
+// For mail sending. NOTE: *no trailing slash*
+Parameters.siteURL = "http://localhost:3000";
+
+// Lifespan of a (login) cookie
+Parameters.cookieExpire = 183*24*3600*1000; //6 months in milliseconds
+
+// Characters in a login token, and period of validity (in milliseconds)
+Parameters.token = {
+       length: 16,
+       expire: 1000*60*30, //30 minutes in milliseconds
+};
+
+// Email settings
+Parameters.mail = {
+       host: "mail_host_address",
+       port: 465, //if secure; otherwise use 587
+       secure: true, //...or false
+       user: "mail_user_name",
+       pass: "mail_password",
+       contact: "some_contact_email",
+};
+
+module.exports = Parameters;