Added HTTPS support

This commit is contained in:
rainbow napkin 2025-04-12 06:09:34 -04:00
parent 567eb5b574
commit 069cb423fd
4 changed files with 35 additions and 9 deletions

View file

@ -26,7 +26,7 @@ const validator = require('validator');//We need validators for express-less cod
module.exports.securityCheck = function(){
//Check Protocol
if(config.protocol == 'http'){
if(config.protocol.toLowerCase() != 'https'){
//If it's insecure then warn the admin
loggerUtil.consoleWarn("Starting in HTTP mode. This server should be used for development purposes only!");
}