Added some admin endpoints & ssl, and cleaned up config

This commit is contained in:
Johnathon Slightham
2021-05-25 15:50:56 -04:00
parent cafb324ddb
commit fdb447a9ee
4 changed files with 104 additions and 10 deletions

View File

@@ -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;