Added HTTPS support
This commit is contained in:
parent
567eb5b574
commit
069cb423fd
4 changed files with 35 additions and 9 deletions
|
|
@ -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!");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue