Added some admin endpoints & ssl, and cleaned up config
This commit is contained in:
44
config.js
44
config.js
@@ -1,16 +1,52 @@
|
||||
var config = {};
|
||||
|
||||
// Mailer settings
|
||||
/*
|
||||
* Mailer settings
|
||||
*/
|
||||
config.mail = {};
|
||||
// Mail host
|
||||
config.mail.host = "localhost";
|
||||
// Mail port
|
||||
config.mail.port = "587";
|
||||
// Mail use secure
|
||||
config.mail.secure = false;
|
||||
// Mail username
|
||||
config.mail.user = "email";
|
||||
// Mail password
|
||||
config.mail.pass = "password";
|
||||
config.mail.from = "name"
|
||||
// Mail from name
|
||||
config.mail.from = "name";
|
||||
|
||||
// Session purge settings
|
||||
/*
|
||||
* Session purge settings
|
||||
*/
|
||||
// Maximum session length in days
|
||||
config.maxSessionLength = 30;
|
||||
|
||||
/*
|
||||
* SSL settings
|
||||
*/
|
||||
config.ssl = {};
|
||||
// Run SSL server
|
||||
config.ssl.use = false;
|
||||
// Location of SSL key
|
||||
config.ssl.key = "/etc/letsencrypt/live/knologic.chickenkiller.com/privkey.pem";
|
||||
// Location of SSL cert
|
||||
config.ssl.cert = "/etc/letsencrypt/live/knologic.chickenkiller.com/fullchain.pem";
|
||||
// SSL port
|
||||
config.ssl.port = 4000;
|
||||
|
||||
/*
|
||||
* HTTP settings
|
||||
*/
|
||||
config.http = {};
|
||||
// HTTP port
|
||||
config.http.port = 8080;
|
||||
|
||||
/*
|
||||
* Database Settings
|
||||
*/
|
||||
config.db = {}
|
||||
config.db.connection = 'mongodb://localhost:27017/kno-logic';
|
||||
|
||||
|
||||
module.exports = config;
|
||||
|
||||
Reference in New Issue
Block a user